Hacker News new | past | comments | ask | show | jobs | submit login

Does anyone know if this uses ICU under the covers? Is that affected too?



I don't believe that's the case, looking at the commit [0]

[0] https://github.com/tzinfo/tzinfo/commit/01bcca5de920093b52fb...


Interesting. The reason for a bug seems to be that ^ and $ in regexps match a boundary of any line, not boundaries of a string. This have already caused problems in the past, as far as I remember, but Ruby developers didn't change the behaviour of these characters.

So if you write a regexp like /^[0-9]$/, a string "Any characters\n12345\nAny characters" will match the regexp.


> Ruby developers didn't change the behaviour of these characters

because Ruby has \A and \Z to match the boundaries of a string




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: