make € on input line optional master
authormirabilos <t.glaser@tarent.de>
Tue, 11 Feb 2020 19:21:11 +0000 (20:21 +0100)
committermirabilos <mirabilos@evolvis.org>
Tue, 11 Feb 2020 19:21:11 +0000 (20:21 +0100)
mksh/eurocalc

index 178894f..87ce6e4 100755 (executable)
@@ -110,7 +110,7 @@ while IFS= read -r line; do
                print -r -- "$h$r"
                continue
        fi
-       if [[ $r != +([0-9])[,.]@([0-9][0-9]|--)' €' ]]; then
+       if [[ $r != +([0-9])[,.]@([0-9][0-9]|--)?(' €') ]]; then
                print -ru2 -- "E: bad input on line #$ln"
                print -ru2 -- "N: ${r@Q}"
                exit 1