We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String#startsWith
This implementation fails the following tests taken from https://github.com/mathiasbynens/String.prototype.startsWith/blob/master/tests/tests.js:
assertThrows(function() { '[a-z]+(bar)?'.startsWith(/[a-z]+/); }, TypeError); assertThrows(function() { '[a-z]+(bar)?'.startsWith(/(bar)?/); }, TypeError); assertThrows(function() { '[a-z]+/(bar)?/'.startsWith(/(bar)?/); }, TypeError);
The same goes for endsWith.
endsWith
The text was updated successfully, but these errors were encountered:
String#endsWith
position
Throw TypeError when regex is passed to String#startsWith and String#…
cd281e2
…endsWith. Closes paulmillr#167
Successfully merging a pull request may close this issue.
This implementation fails the following tests taken from https://github.com/mathiasbynens/String.prototype.startsWith/blob/master/tests/tests.js:
The same goes for
endsWith
.The text was updated successfully, but these errors were encountered: