Timeline for JavaScript: String.indexOf(...) allowing regular-expressions?
Current License: CC BY-SA 2.5
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Nov 10, 2008 at 18:52 | history | edited | Pat | CC BY-SA 2.5 | Reformat code |
| Nov 8, 2008 at 23:20 | comment | added | Jason Bunting | I updated my solution and appreciate any feedback or things that cause it to fail. I made a change to fix the overlapping problem pointed out by MizardX (hopefully!) | |
| Nov 8, 2008 at 22:48 | comment | added | Pat | Form the mozilla page :-) I just took the code ad change two lines leaving all the edge cases. Since a couple of the other answers were updated to pass the tests, I will try benchmarking them and accept the most efficent. When I have time to revisit the issue. | |
| Nov 8, 2008 at 22:26 | comment | added | Pat | This implementation aims for absolute compatibility with lastIndexOf in Firefox and the SpiderMonkey JavaScript engine, including in several cases which are arguably edge cases. [...] in real-world applications, you may be able to calculate from with less complicated code if you ignore those cases. | |
| Nov 8, 2008 at 19:38 | comment | added | Jason Bunting | Wow, that is a long bit of code. Please check my updated answer and provide feedback. Thanks. | |
| Nov 8, 2008 at 12:46 | history | answered | Pat | CC BY-SA 2.5 |