Skip to content

Instantly share code, notes, and snippets.

@agaase
Created March 24, 2014 20:11
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 agaase/9748059 to your computer and use it in GitHub Desktop.
Save agaase/9748059 to your computer and use it in GitHub Desktop.
summarize code
a.substring(0,139).match(/[\s\S]+\s/g)[0].trim()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment