Skip to content

Instantly share code, notes, and snippets.

@nobleach
Created July 21, 2017 00:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobleach/227278fcec8946df8e95482469a3f8b3 to your computer and use it in GitHub Desktop.
Save nobleach/227278fcec8946df8e95482469a3f8b3 to your computer and use it in GitHub Desktop.
var critical = /(?!\.critical).*\.less$/;
// matches
Title.critical.less
// but not
Toast.less
App.less
var nonCritical = /^((?!critical).)*\.less$/gm;
// matches
Toast.less
App.less
// but not
Title.critical.less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment