We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d390969 commit b729b27Copy full SHA for b729b27
1 file changed
p5.input.js
@@ -6,7 +6,9 @@ window.aKeyPressed = false;
6
String.prototype.replaceAll = function (stringToFind, stringToReplace) {
7
if (stringToFind === stringToReplace) return this;
8
var temp = this;
9
- temp = (((stringToFind.length < 1) && temp.includes(stringToFind)) ? (temp.split(stringToFind).join(stringToReplace)) : (temp))
+ // debug line
10
+ // console.log((stringToFind.length > 0) + " and " + temp.includes(stringToFind))
11
+ temp = (((stringToFind.length > 0) && temp.includes(stringToFind)) ? (temp.split(stringToFind).join(stringToReplace)) : (temp))
12
return temp;
13
};
14
0 commit comments