Skip to content

Instantly share code, notes, and snippets.

@chrisryana
Last active February 17, 2021 14:27
Show Gist options
  • Save chrisryana/4324441fdf16a908b8742ef6f6547eec to your computer and use it in GitHub Desktop.
Save chrisryana/4324441fdf16a908b8742ef6f6547eec to your computer and use it in GitHub Desktop.
Удаляет невидимый пробел нулевой ширины
text.replace(/(^[\s\u200b]*|[\s\u200b]*$)/g, '')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment