From 6675c0e93b508a159edcc3dc8a4ada176572fc2f Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Mon, 13 May 2019 16:14:34 +0200 Subject: [PATCH] Relax REST API validation --- .../package/compile/events/apiGateway/lib/hack/updateStage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js b/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js index afda6561b..bbba47463 100644 --- a/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js +++ b/lib/plugins/aws/package/compile/events/apiGateway/lib/hack/updateStage.js @@ -5,7 +5,7 @@ const _ = require('lodash'); const BbPromise = require('bluebird'); -const isRestApiId = RegExp.prototype.test.bind(/^[a-z0-9]{10}$/); +const isRestApiId = RegExp.prototype.test.bind(/^[a-z0-9]{3,}$/); // NOTE --> Keep this file in sync with ../stage.js