MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / escape

Function escape

libraries/p5.js:24546–24548  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

24544 */
24545p5.Table.prototype.removeTokens = function(chars, column) {
24546 var escape= function(s) {
24547 return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
24548 };
24549 var charArray = [];
24550 for (var i = 0; i < chars.length; i++) {
24551 charArray.push( escape( chars.charAt(i) ) );

Callers 1

p5.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected