Skip to content

Commit 2a64bc4

Browse files
committed
XRegExp.matchRecursive: Defer to native flag s in edge case to match recent change in base lib
1 parent 9660b90 commit 2a64bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addons/matchrecursive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ export default (XRegExp) => {
111111
XRegExp.union([left, right], '', {conjunction: 'or'}).source
112112
})[^${escapeChar}])+)+`,
113113
// Flags `gy` not needed here
114-
flags.replace(/[^imu]+/g, '')
114+
flags.replace(XRegExp._hasNativeFlag('s') ? /[^imsu]/g : /[^imu]/g, '')
115115
);
116116
}
117117

0 commit comments

Comments
 (0)