Commit e6602c50 authored by Orgun109uk's avatar Orgun109uk Committed by nikunj
Browse files

Issue #2288995 by NicA109: XRegExp flags

parent fc51dce3
......@@ -985,7 +985,7 @@
// Only allow supported modifiers
var modraw = reg.substr(delim + 1) || '';
var mod = '';
if (mod !== '') {
if (modraw !== '') {
for (var l = 0; l < 6; l++) {
if (modraw.indexOf('gimnsx'[l]) !== -1) {
mod += 'gimnsx'[l];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment