Update fuse.String#contains to support a RegExp pattern.
Reported by Joe Gornick | March 5th, 2011 @ 01:43 AM
Current, the contains method only supports a string to search for, we could also accept a RegExp for the pattern and run a test of the string.
Comments and changes to this ticket
-
Kit Goncharov March 12th, 2011 @ 04:12 PM
- State changed from new to discuss
-
John-David Dalton March 14th, 2011 @ 01:21 AM
The method is there for consistency of a port of Prototype API. The
fuse.Array#contains
doesn't support a regexp. What you want is afuse.String#test
, similar toRegExp#test
. -
John-David Dalton March 14th, 2011 @ 01:21 AM
- State changed from discuss to invalid
-
John-David Dalton March 14th, 2011 @ 01:26 AM
- State changed from invalid to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.