Created
May 30, 2013 03:05
-
-
Save mmckegg/5675505 to your computer and use it in GitHub Desktop.
Regexp to find trailing commas in javascript files that throw errors in IE and destroy everything!
This file contains 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
,\s*\n+(\s*\/\/.*\n)*\s*[\}\)\]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment