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.
Array#lastIndex
1 parent d532b4b commit 28f5e2bCopy full SHA for 28f5e2b
index.js
@@ -14,7 +14,7 @@ function findAndReplace(tree, find, replace, options) {
14
15
if (
16
typeof find === 'string' ||
17
- (find && typeof find.lastIndex === 'number')
+ (find && typeof find.exec === 'function')
18
) {
19
schema = [[find, replace]]
20
} else {
0 commit comments