caverav / auditforge

Prefer adding u flag in regular expressions JS-0117
Anti-pattern
Minor
11 days ago11 days old
Use the 'u' flag with regular expressions
151    };
152  }
153  const expr = expressions.compile(
154    tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"'),155  );
156  return {
157    get: function (scope, context) {
Use the 'u' flag with regular expressions
151    };
152  }
153  const expr = expressions.compile(
154    tag.replace(/(’|‘)/g, "'").replace(/(“|”)/g, '"'),155  );
156  return {
157    get: function (scope, context) {