crystal icon indicating copy to clipboard operation
crystal copied to clipboard

Add `Regex::CompileOptions::MULTILINE_ONLY`

Open ralsina opened this issue 1 year ago • 1 comments

Adds a new MULTILINE_ONLY flag to regexes.

I created an issue here:

https://github.com/crystal-lang/crystal/issues/14869

As discussed here:

https://forum.crystal-lang.org/t/regex-that-is-multiline-but-not-dotall-how/7054/12

ralsina avatar Aug 06 '24 14:08 ralsina

Re-added the special handling for MULTILINE (setting MULTILINE and DOTALL) because removing it broke a test.

The remaining test failure happens on main too (at spec/std/regex_spec.cr:19)

ralsina avatar Aug 08 '24 00:08 ralsina