Skip to content

Commit

Permalink
serverless#3184 Simplify variables regex
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Sep 24, 2020
1 parent 8b593fd commit 185b4e8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/classes/Service.js
Expand Up @@ -20,14 +20,7 @@ class Service {
this.serviceObject = null;
this.provider = {
stage: 'dev',
variableSyntax:
'\\${(' +
// either 'foo:bar'
'[^{}:]+?:[^:{}][^{}]*?' +
'|' +
// or 'file(...)'
'file\\([^\\)]*\\)' +
')}',
variableSyntax: '\\${([^{}:]+?(?:\\(|:)[^:{}][^{}]*?)}',
};
this.custom = {};
this.plugins = [];
Expand Down

0 comments on commit 185b4e8

Please sign in to comment.