1
0
Fork 0
forked from OpenNeo/impress
impress/app/models/item
Emi Matchu 2a34e8be6d Oops, fix regex patterns to use \A to \z instead of ^ to $
Oh huh, TIL in Ruby `^` *always* means "start of line", whereas in many
languages' regular expression engines it means "start of string" unless
you enable a special multiline flag for the pattern.

I've fixed this in a number of expressions now!

I'm noticing this in the context of doing some security training work
where this the cause of a sample vulnerability, but, looking at our own
case, I don't think there was anything *abusable* here? But this is
just more correct, so let's be more correct!
2024-06-28 01:32:15 -07:00
..
search Oops, fix regex patterns to use \A to \z instead of ^ to $ 2024-06-28 01:32:15 -07:00
dyeworks.rb Oops, fix regex patterns to use \A to \z instead of ^ to $ 2024-06-28 01:32:15 -07:00
search.rb globalized search first draft 2013-01-24 18:24:35 -06:00