Q to @bmeurer
How come
`global.x = /%/g.test("/ph/
file20.js")`
is 3 times faster than
`global.x = /%/g.replace("/ph/
file20.js", "%25")`pic.twitter.com/Y5wYPB4KE4
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
/%/g The full context is https://github.com/nodejs/node/pull/16128#discussion_r143845660 … (tweet was limited by 140)
I was confused because of:
/%/g.replace("/ph/
file20.js", "%25")
Looks like you meant:
"/ph/
file20.js".replace(/%/g, "%25")
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.