diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js index ba663fb96..3855a7272 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/lib/validate.js @@ -29,7 +29,7 @@ const DEFAULT_STATUS_CODES = { pattern: '[\\s\\S]*\\[502\\][\\s\\S]*', }, 504: { - pattern: '([\s\S]*\[504\][\s\S]*)|(^[Task timed out].*)', + pattern: '([\\s\\S]*\\[504\\][\\s\\S]*)|(^\[Task timed out\].*)', }, };