IronCache icon indicating copy to clipboard operation
IronCache copied to clipboard

Better regex delimiter when matching URIs

Open tabacco opened this issue 13 years ago • 0 comments

I altered the preg_match pattern to use '#' as the regex delimiter rather than '/' since slashes will appear in the config all the time, and # won't. This way it's not necessary to escape every slash in the config.

That said, it introduces a soft-breaking change to existing configs with escaped slashes, since '/' will now match literally.

tabacco avatar Jul 07 '12 16:07 tabacco