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
#!/bin/bash | |
# Create the Unicode pattern for sed | |
INVISIBLE_CHARS=( | |
$'\u200B' # Zero-width space | |
$'\u200C' # Zero-width non-joiner | |
$'\u200D' # Zero-width joiner | |
$'\u2060' # Word joiner | |
$'\uFEFF' # Zero-width non-breaking space | |
$'\u180E' # Mongolian vowel separator |