зеркало из https://github.com/mozilla/pjs.git
b9d7c15e2b
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 | ||
Makefile.in | ||
landbranch.pl | ||
makefile.win |