Skip to content

Instantly share code, notes, and snippets.

@afrex
Created September 4, 2013 08:03
Show Gist options
  • Save afrex/6434051 to your computer and use it in GitHub Desktop.
Save afrex/6434051 to your computer and use it in GitHub Desktop.
Use this regex in a search to retrieve trailing comma's of death within your application. This comma's will cause inconsistent behaviour in Internet Explorer browsers.
@RyKilleen
Copy link

For use in Sublime Text, escape the closing curly:

,\s*?\]|,\s+\}

Super helpful, thank you.

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