Closed wangjing013 closed 3 years ago
firefox 75.0 64bit windows 7 - my console results
let text = "hello1 hello2 hello3"; undefined let stickyPattern = /hello\d\s?/y; undefined console.log(text.match(stickyPattern)); undefined Array [ "hello2 " ] debugger eval code:1:9 console.log(stickyPattern.lastIndex); undefined 14 debugger eval code:1:9 console.log(text.match(stickyPattern)); undefined null debugger eval code:1:9 console.log(stickyPattern.lastIndex); undefined
Sorry, this doesn't appear to contain anything actionable, so closing.
The result is that the
match()
method is also affected by stickyor