File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -145,11 +145,11 @@ function isCloudFormation(template: string, filename: string): Boolean {
145145 return true ;
146146 }
147147 if (/\n?"?Resources"?\s*:/.exec(template)) {
148- if ( / " ? T y p e " ? \s * : \s * " ? ' ? ( A W S | A l e x a | C u s t o m ) : : / . exec ( template ) ) {
148+ if ( / " ? T y p e " ? \s * : \s * " ? ' ? [ a - z A - Z 0 - 9 ] { 2 , 64 } : : [ a - z A - Z 0 - 9 ] { 2 , 64 } / . exec ( template ) ) {
149149 // filter out serverless.io templates
150150 if ( ! ( / \n r e s o u r c e s : / . exec ( template ) && / \n p r o v i d e r : / . exec ( template ) ) ) {
151151 connection . console . log ( "Determined this file is a CloudFormation Template. " + filename +
152- ". Found 'Resources' and 'Type: (AWS|Alexa|Custom):: '" ) ;
152+ ". Found 'Resources' and 'Type: [a-zA-Z0-9]{2,64}::[a-zA-Z0-9]{2,64} '" ) ;
153153 return true ;
154154 }
155155 }
You can’t perform that action at this time.
0 commit comments