Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex ungreedy modifier "U" breaks formatting #752

Closed
h4cc opened this issue Jul 28, 2017 · 3 comments
Closed

Regex ungreedy modifier "U" breaks formatting #752

h4cc opened this issue Jul 28, 2017 · 3 comments

Comments

@h4cc
Copy link

h4cc commented Jul 28, 2017

The new Regex ungreedy modifier at the end of a regex "U" breaks formatting. The old value was/is "r":

ungreedy (U) - inverts the “greediness” of the regexp (the previous r option is deprecated in favor of U)
https://hexdocs.pm/elixir/Regex.html#module-modifiers

Examples:

~r/foo(.*)bar/i is ok
~r/foo(.*)bar/iU breaks formatting

@KronicDeth
Copy link
Owner

It's a new feature for Elixir, so it'll count as an enhancement even though you experience as a bug.

@h4cc
Copy link
Author

h4cc commented Jul 30, 2017

perfectly fine 👍

@KronicDeth KronicDeth modified the milestones: v6.1.0, v6.2.0 Aug 9, 2017
@KronicDeth KronicDeth modified the milestones: v6.2.0, v6.1.1 Aug 18, 2017
@KronicDeth
Copy link
Owner

This will be a port of elixir-lang/elixir#2774 for cross-reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants