Skip to content

Commit

Permalink
fix: enhance variable private to public
Browse files Browse the repository at this point in the history
  • Loading branch information
adyfk committed May 28, 2024
1 parent c320147 commit bed95d1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/ExpressionParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const stringRegex = /(?:"[^"]*")|(?:'[^']*')/;
const identifierRegex = /(?:\w+(?:\.\w+)*(?:\[\d+\])*|(?:\.\.\.\w+))/

export class ExpressionParser {
private variables: VariableMap = {};
private functions: FunctionMap = {};
private operators: OperatorMap = {};
private regex: RegExp;
variables: VariableMap = {};
functions: FunctionMap = {};
operators: OperatorMap = {};
regex: RegExp;

constructor({
variables,
Expand All @@ -43,7 +43,7 @@ export class ExpressionParser {
identifierRegex.source;

if (regex) {
regexString += '|' + regex;
regexString += '|' + regex.source;
}
this.regex = new RegExp(regexString,
'g'
Expand Down

0 comments on commit bed95d1

Please sign in to comment.