diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-22 12:16:02 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-22 12:16:02 +0200 |
commit | bbcc1a9ae34558a001bbeacd57aab4791ee0a2be (patch) | |
tree | b4fa380c95f5f1f411721b87d44dd738015f072a | |
parent | 833eed5c6ac230dc559377d3a6cdb87d68e417e5 (diff) | |
download | fref-bbcc1a9ae34558a001bbeacd57aab4791ee0a2be.tar.gz |
fref.t: Improve Perl script
-rw-r--r-- | fref.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -179,8 +179,8 @@ $i++ if /^[^%]/ and $e[$i] =~ /^%/m; $e[$i] .= $_; END { print for sort { f($a) cmp f($b) } @e } sub f { - return $1 if $_[0] =~ /^%la.(.)/m; - return $1 if $_[0] =~ /^%au.(.)/m; + return $1 if $_[0] =~ /^%la.(.*)$/m; + return $1 if $_[0] =~ /^%au.(.*)$/m; } .PP If you keep your references in a separate file, |