update documentation

This commit is contained in:
rolux 2013-11-29 21:09:10 +01:00
parent aff40b0154
commit ef07c50fff

View file

@ -26,7 +26,8 @@ Ox.clean = function(string) {
/*@ /*@
Ox.endsWith <f> Tests if a string ends with a given substring Ox.endsWith <f> Tests if a string ends with a given substring
Equivalent to `new RegExp(Ox.escapeRegExp(substring) + '$').test(string)`. Equivalent to (but faster than)
`new RegExp(Ox.escapeRegExp(substring) + '$').test(string)`.
(string, substring) -> <b> True if string ends with substring (string, substring) -> <b> True if string ends with substring
> Ox.endsWith('foobar', 'bar') > Ox.endsWith('foobar', 'bar')
true true
@ -403,7 +404,8 @@ Ox.splice = function(string, index, remove) {
/*@ /*@
Ox.startsWith <f> Tests if a string ends with a given substring Ox.startsWith <f> Tests if a string ends with a given substring
Equivalent to `new RegExp('^' + Ox.escapeRegExp(substring)).test(string)`. Equivalent to (but faster than)
`new RegExp('^' + Ox.escapeRegExp(substring)).test(string)`.
(string, substring) -> <b> True if string starts with substring (string, substring) -> <b> True if string starts with substring
> Ox.startsWith('foobar', 'foo') > Ox.startsWith('foobar', 'foo')
true true