mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
4aee7d25d7
expressions. The method "prefix" on a RegExp behaves exactly the same as the "exec" method except it returns "undefined" if the match failed because there was an insufficient number of characters in the input. E.g. /^foo/.prefix("foo") => ["foo"] (just like exec) /^foo/.prefix("fox") => null (just like exec) /^foo/.prefix("fo") => undefined (whereas exec returns null) |
||
---|---|---|
.. | ||
benchmarks | ||
js2 | ||
jsd | ||
jsdj | ||
jsj | ||
macbuild | ||
ref | ||
rhino | ||
semantics | ||
src | ||
tests | ||
.cvsignore | ||
landbranch.pl | ||
Makefile.in | ||
makefile.win |