Skip to content

Commit b729b27

Browse files
authored
Update p5.input.js
1 parent d390969 commit b729b27

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

p5.input.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ window.aKeyPressed = false;
66
String.prototype.replaceAll = function (stringToFind, stringToReplace) {
77
if (stringToFind === stringToReplace) return this;
88
var temp = this;
9-
temp = (((stringToFind.length < 1) && temp.includes(stringToFind)) ? (temp.split(stringToFind).join(stringToReplace)) : (temp))
9+
// 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))
1012
return temp;
1113
};
1214

0 commit comments

Comments
 (0)