Created
October 18, 2019 10:01
-
-
Save PCouaillier/f9d85ed98b2c70646b2a4bf02db45162 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const notString = s => `^(?:[^${s[0]}]|${s[0]}(?!${s.substring(1)}))*$`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment