From 9898bb516d6c1dd91df907896820d14d72b3ab0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 26 May 2021 01:55:50 +0200 Subject: mum: Convert 'plus' string to integer --- src/mum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mum b/src/mum index 402053e..a31f45d 100755 --- a/src/mum +++ b/src/mum @@ -30,7 +30,7 @@ my $d = qr{ | (?&next) (?{ local %ref = (next => $^R) }) | (?&prev) (?{ local %ref = (prev => $^R) }) ) - ( ([+-] \d+) (?{ local %ref = (%ref, plus => $^N) }) + ( ([+-] \d+) (?{ local %ref = (%ref, plus => 0+$^N) }) )? ) (? g((?&next)) (?{ local %ref = (grep => $^R) }) -- cgit v1.2.3