You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
== Compilation error on file lib/validator.ex ==
** (Regex.CompileError) invalid range in character class at position 320
(elixir) lib/regex.ex:171: Regex.compile!/2
(elixir) expanding macro: Kernel.sigil_r/2
lib/validator.ex:6: Validator (module)
(elixir) expanding macro: Kernel.@/1
lib/validator.ex:6: Validator (module)
I'll update this ticket as I go along debugging it and submitting a PR.
The text was updated successfully, but these errors were encountered:
awochna
added a commit
to awochna/validator
that referenced
this issue
Jun 18, 2017
This might not be the right course of action, but removing them gets all
tests to pass. If this is wrong, it implies that the tests are not yet
comprehensive enough, but then again, regex tests almost can't be.
In the original regex set linked to from the documentation
(https://gist.github.com/dperini/729294), these characters are unicode
characters like `\u00a1`. I haven't been able to find the equivalent in
my searches for regex characters in elixir beginning with a `\X`. I'm
sure it also makes for poor search queries.
Closesfourkio#9
Also add tests to prove this works.
Also, split the monster regex line into multiple lines with comments,
making it easier to understand, debug, and maintain.
Compiles on Elixir 1.4.4/OTP 20RC2
Fixesfourkio#9
Version info (ouput of
elixir --version
)Error running
mix test
I'll update this ticket as I go along debugging it and submitting a PR.
The text was updated successfully, but these errors were encountered: