3 ms·
I don't think so without modifying the string or regex each iteration. You'd have to do something like let flagified = new RegExp(original.source, original
by zamadatix 7y ago
I don't think so without modifying the string or regex each iteration. You'd have to do something like
let flagified = new RegExp(original.source, original.flags + "g")
or modify the regex standards as part of the proposal.