diff options
author | John Ankarström <john@ankarstrom.se> | 2021-05-26 01:55:50 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-05-26 01:55:50 +0200 |
commit | 9898bb516d6c1dd91df907896820d14d72b3ab0f (patch) | |
tree | f26920ebfaed9eeea7c638fad9a7d7799a5a2df4 | |
parent | b511a4ced9c0e48fdc35db2b0ae9d454e72bf800 (diff) | |
download | mum-9898bb516d6c1dd91df907896820d14d72b3ab0f.tar.gz |
mum: Convert 'plus' string to integer
-rwxr-xr-x | src/mum | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) }) )? ) (?<grep> g((?&next)) (?{ local %ref = (grep => $^R) }) |