Skip to content

Instantly share code, notes, and snippets.

@beardlessman
Created August 3, 2017 05:46
Show Gist options
  • Select an option

  • Save beardlessman/220b3f761afb18b86bb696aa0f5ab6d0 to your computer and use it in GitHub Desktop.

Select an option

Save beardlessman/220b3f761afb18b86bb696aa0f5ab6d0 to your computer and use it in GitHub Desktop.
Убирает табы/лишние пробелы в строке
string.replace(/\s{2,}/g, ' ');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment