diff options
author | Joseph Graham <joseph@fibreglass.tunachunks> | 2014-09-30 13:23:13 +0100 |
---|---|---|
committer | Joseph Graham <joseph@fibreglass.tunachunks> | 2014-09-30 13:23:13 +0100 |
commit | bf72e27ad845a3c4376c475dd129b6f1bb8b3832 (patch) | |
tree | 52392cb8bd8e0d268455ada7eb9533f43acd8ca6 | |
parent | a4631ed5ceda90a66b79bd1c4e3b374d817c28be (diff) |
Fixed annoying bug in footnotes. It no longer matches unless the filename matches right to the start of a word boundry.
-rw-r--r-- | hack_of_all_hacks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hack_of_all_hacks b/hack_of_all_hacks index 989593f..f2d9e0a 100644 --- a/hack_of_all_hacks +++ b/hack_of_all_hacks @@ -393,7 +393,7 @@ EOF declare -l lowersentence="${sentence}" - if [[ "${lowersentence}" =~ ${filename}[\ ]?\[[[:digit:]]\] ]] + if [[ " ${lowersentence}" =~ [^[:alnum:]]${filename}[\ ]?\[[[:digit:]]\] ]] then index="${BASH_REMATCH: -2:1}" |