crystal
crystal copied to clipboard
Add `Regex::CompileOptions::MULTILINE_ONLY`
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
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)