Skip to content
This repository was archived by the owner on Jul 1, 2020. It is now read-only.
This repository was archived by the owner on Jul 1, 2020. It is now read-only.

in_list: doesn't work well with symbols #96

Closed

Description

@lwj5

An example here: http://plnkr.co/edit/Rwupj91yWAbfgsgIebsb

Try to validate your blood type. "A" passes validation while, "A+" fails. Along with other text that have symbols. The feature seems to truncate symbols.

Activity

  1. ghiscoding commented on Dec 15, 2015

    @ghiscoding
    Owner

    I was using \b in my RegExp, which is Word Boundary. This unfortunately means that only words are excepted, which excludes special characters and that explains why the A was valid while the A+ was invalid.

    I also found out that I don't actually need to use word boundaries, I can simply use it directly in my RegExp ^(word1|word2|A\+)$, as long as the string is also escaped.

    I will push the fix in the next revision, sometime this week. Thanks for the feedback

    You live in Singapore? It's nice there, been there twice, wouldn't mind to live there, better than Canadian winter hehe

  2. added a commit that references this issue on Dec 15, 2015
  3. ghiscoding commented on Dec 15, 2015

    @ghiscoding
    Owner

    This was fixed in last release v1.4.17

  4. lwj5 commented on Dec 17, 2015

    @lwj5
    Author

    @ghiscoding I see, thanks for the really fast fix.

    Yea, I live in Singapore! Canadian winter is just freezing cold, but It's gets pretty hot down here. For me, I would definitely like to go to a colder country! haha

    I guess the grass is always greener on the other side eh. Cheers!

  5. ghiscoding commented on Dec 17, 2015

    @ghiscoding
    Owner

    Haha you're right, I don't mind the warm weather but I actually find that the humidity is a bit too high in Singapore. Canadian summer is nice, if only it could be all year haha.

    Thanks for the feedback, enjoy the package and tell your friends ;)
    I'll let you know next time I go back to SG, hotel is near NUS university on Bencoolen street.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions