You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first argument of String.prototype.replace() is actually interpreted as a Lua search pattern, not as a string.
For example, this code console.log("String.prototype.replace()".replace("$", " is buggy"))
prints String.prototype.replace() is buggy, while it should just print String.prototype.replace().
The text was updated successfully, but these errors were encountered:
The first argument of String.prototype.replace() is actually interpreted as a Lua search pattern, not as a string.
For example, this code
console.log("String.prototype.replace()".replace("$", " is buggy"))
prints
String.prototype.replace() is buggy
, while it should just printString.prototype.replace()
.The text was updated successfully, but these errors were encountered: