2 ms·
> But that is exactly what it means I think you've kind of missed the point. Sure if `$` in non-multiline mode means "end of line" the behaviour might be reaso
by IshKebab 3y ago
> But that is exactly what it means
I think you've kind of missed the point. Sure if `$` in non-multiline mode means "end of line" the behaviour might be reasonable. But the big error is that people DO NOT EXPECT `$` to mean "end of line" in that case. They expect it to mean "end of string". That's clearly the least surprising and most useful behaviour.
The bug is not in how they have implemented "end of line" matching in non-multiline mode. It's that they did it at all.