Skip to content

Commit

Permalink
Recognize file variable value contains whitespaces #264
Browse files Browse the repository at this point in the history
  • Loading branch information
Huachao committed Oct 10, 2018
1 parent 506435b commit 4e3f0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const AzureClouds: { [key: string]: { aad: string, arm: string, armAudien

export const CommentIdentifiersRegex: RegExp = /^\s*(#|\/{2})/;

export const FileVariableDefinitionRegex: RegExp = /^\s*@([^\s=]+)\s*=\s*(\S+)\s*$/;
export const FileVariableDefinitionRegex: RegExp = /^\s*@([^\s=]+)\s*=\s*(.+?)\s*$/;

export const RequestVariableDefinitionWithNameRegexFactory = (name: string, flags?: string): RegExp =>
new RegExp(`^\\s*(?:#{1,}|\\/{2,})\\s+@name\\s+(${name})\\s*$`, flags);
Expand Down

0 comments on commit 4e3f0bb

Please sign in to comment.