From: Sergey Matveev Date: Wed, 22 Mar 2023 08:42:29 +0000 (+0300) Subject: Another convenient replacement X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=6878d51da723b9d2e918ef4a96cd794e57b851b3;p=torn.git Another convenient replacement --- diff --git a/torn.zsh b/torn.zsh index 7c2876c..4d8bcd7 100755 --- a/torn.zsh +++ b/torn.zsh @@ -52,6 +52,8 @@ tornm() { local n=$1 n=${n:gs/ /_} n=${n//_[–-]_/-} + n=${n//_[–-]/-} + n=${n//[–-]_/-} n=${n:gs/,_/,} n=${n//[\[\]]/} n=${n:gs/_(/(}