We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cee978 commit dfe7354Copy full SHA for dfe7354
src/getValue.js
@@ -344,6 +344,9 @@ const getValue = (element) => {
344
345
function regexParser(string) {
346
let regex, replacement;
347
+ // Match a regex pattern enclosed by delimiters or a bare regex string
348
+ // let regexMatch = string.match(/^\/(.+)\/([gimuy]*)$/) || [null, string, ""];
349
+
350
let regexMatch = string.match(/\/(.+)\/([gimuy]*)/);
351
if (regexMatch) {
352
regex = new RegExp(regexMatch[1], regexMatch[2]);
0 commit comments