From: Sergey Matveev Date: Tue, 21 Dec 2021 11:22:26 +0000 (+0300) Subject: Damned Unicode dash X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=076741bc2aa25d5966b2741013c88360af3afc53;p=torn.git Damned Unicode dash --- diff --git a/torn.zsh b/torn.zsh index 3ea8bec..511d544 100755 --- a/torn.zsh +++ b/torn.zsh @@ -48,7 +48,7 @@ tornt() { tornm() { local n=$1 n=${n:gs/ /_} - n=${n:gs/_-_/-} + n=${n//_[–-]_/-} n=${n:gs/,_/,} n=${n//[\[\]]/} n=${n:gs/_(/(}