Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upString.startsWith returns True for an empty substring #717
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Sep 21, 2016
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
process-bot
commented
Sep 21, 2016
|
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it! Here is what to expect next, and if anyone wants to comment, keep these things in mind. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
simonewebdesign
Sep 21, 2016
I think it's correct, ES2015 has the same behavior:
"Hello".startsWith("")
=> true
simonewebdesign
commented
Sep 21, 2016
|
I think it's correct, ES2015 has the same behavior: "Hello".startsWith("")
=> true |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Shemeikka
Sep 21, 2016
Yeah,
So it seems. In fact, this seems to be same in every language.
I have to say that this goes against my logic even after reading the reasons for this behavior.
I think this issue can now be closed..
Shemeikka
commented
Sep 21, 2016
•
|
Yeah, So it seems. In fact, this seems to be same in every language. I have to say that this goes against my logic even after reading the reasons for this behavior. I think this issue can now be closed.. |
Shemeikka commentedSep 21, 2016
Hi,
I noticed that String.startsWith returns True for an empty substring
Shouldn't this be False?
Chrome 53
Windows 10
Elm 0.17.1