Skip to content

Commit 3beaacf

Browse files
author
f1lt3r
committed
Addind match().
1 parent e1c691f commit 3beaacf

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

example.pjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
// Draws a green square...
1+
//
22
background( 0, 255, 0 );

processing.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@
403403
////////////////////////////////////////////////////////////////////////////
404404
// Array handling
405405
////////////////////////////////////////////////////////////////////////////
406-
406+
407407
p.concat = function concat( array1, array2 ){
408408
return array1.concat( array2 );
409409
}
@@ -769,9 +769,11 @@
769769
e.stopPropagation();
770770
}, false );
771771
}
772+
773+
772774

773775
////////////////////////////////////////////////////////////////////////////
774-
// binaryunctions
776+
// Binary Functions
775777
////////////////////////////////////////////////////////////////////////////
776778

777779
p.unbinary = function unbinary( binaryString ){
@@ -1029,9 +1031,17 @@
10291031
}
10301032
}
10311033

1034+
////////////////////////////////////////////////////////////////////////////
1035+
// String Functions
1036+
////////////////////////////////////////////////////////////////////////////
1037+
10321038
String.prototype.replaceAll = function( re, replace ){
10331039
return this.replace( new RegExp( re, "g" ), replace );
10341040
};
1041+
1042+
p.match = function( str, regexp ){
1043+
return str.match( regexp );
1044+
}
10351045

10361046
// Returns a line to lnPrinted() for user handling
10371047
p.lnPrinted = function lnPrinted(){};

processing.min.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)