diff --git a/lib/string.js b/lib/string.js index e4349df26..a087ce939 100644 --- a/lib/string.js +++ b/lib/string.js @@ -407,12 +407,11 @@ /*** * @method startsWith(, [pos] = 0) * @returns Boolean - * @short Returns true if the string starts with . + * @short Returns true if the string starts with , which must be a string. * @extra Search begins at [pos], which defaults to the entire string length. * @example * * 'hello'.startsWith('hell') -> true - * 'hello'.startsWith(/[a-h]/) -> true * 'hello'.startsWith('HELL') -> false * 'hello'.startsWith('ell', 1) -> true * @@ -437,12 +436,11 @@ /*** * @method endsWith(, [pos] = length) * @returns Boolean - * @short Returns true if the string ends with . + * @short Returns true if the string ends with , which must be a string. * @extra Search ends at [pos], which defaults to the entire string length. * @example * * 'jumpy'.endsWith('py') -> true - * 'jumpy'.endsWith(/[q-z]/) -> true * 'jumpy'.endsWith('MPY') -> false * 'jumpy'.endsWith('mp', 4) -> false *