# elm-review-validate-regexes

Provides [`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-review/latest/) rules to statically validate regexes.

## Provided rules

- [`Validate.Regexes`](https://package.elm-lang.org/packages/miniBill/elm-review-validate-regexes/1.0.0/Validate-Regexes) - Reports when a call to `Regex.fromString` is going to fail because the input is wrong.

## Configuration

```elm
module ReviewConfig exposing (config)

import Validate.Regexes
import Review.Rule exposing (Rule)

config : List Rule
config =
    [ Validate.Regexes.rule
    ]
```

## Try it out

You can try the example configuration above out by running the following command:

```bash
elm-review --template miniBill/elm-review-validate-regexes/example
```
