Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Somebody probably put in a regexp with .mov$ , however for regexps the dot (.) matches everything (and $ matches end) so the i in asimov is eaten regardless and then the rest of the match succeeds.


You can see the fix they made in the linked MR.

It wasn't a regex, they just did a generic "ends with" check.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: