Last active
February 17, 2021 14:27
-
-
Save chrisryana/4324441fdf16a908b8742ef6f6547eec to your computer and use it in GitHub Desktop.
Удаляет невидимый пробел нулевой ширины
This file contains hidden or 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
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