miniBill/elm-review-validate-regexes/1.0.0

Validate.Regexes

rule : Rule

Reports when a call to Regex.fromString is going to fail because the input is wrong.

config =
    [ Validate.Regexes.rule
    ]

Fail

a =
    Regex.fromString "[a-z+\\""

Success

a =
    Regex.fromString "[a-z]+"

Try it out

You can try this rule out by running the following command:

elm-review --template miniBill/elm-review-validate-regexes/example --rules Validate.Regexes