]> Sergey Matveev's repositories - torn.git/blobdiff - torn.zsh
Raise copyright years
[torn.git] / torn.zsh
index 3ea8becb14093734fe7b36466a376654b519ac6b..6be9f1395a13f40a5b72d2b56b4103a39e4f8293 100755 (executable)
--- a/torn.zsh
+++ b/torn.zsh
@@ -1,5 +1,5 @@
 # torn - Musical files renaming with russian language transliteration
-# Copyright (C) 2007-2021 Sergey Matveev (stargrave@stargrave.org)
+# Copyright (C) 2007-2023 Sergey Matveev (stargrave@stargrave.org)
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -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/_(/(}