Skip to content

Instantly share code, notes, and snippets.

@KOBA789
Created March 18, 2015 00:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KOBA789/da0c963d491700cc2422 to your computer and use it in GitHub Desktop.
Save KOBA789/da0c963d491700cc2422 to your computer and use it in GitHub Desktop.
CSS IDENT REGEXP
var CSS_IDENT = /-?(?:[_a-z]|[\240-\377]|(?:(:?\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))(?:[_a-z0-9-]|[\240-\377]|(?:(:?\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?)|\\[^\r\n\f0-9a-f]))*/;
@lolmaus
Copy link

lolmaus commented Nov 25, 2017

Thank you. 🙇

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