diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2021-11-04 18:15:08 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2021-11-04 18:15:08 +1300 |
commit | 340e2c4c51d4b933269cff7d085c09ceb145631e (patch) | |
tree | ac5f264c5cafacd6cdcef3bb84d2af1805230c59 /src/deck_io.adb | |
parent | 6fbf97420e457570428b3ffbbd8b8de272252e39 (diff) |
Fixed HTML character encoding, question/answer format field parsing
Diffstat (limited to 'src/deck_io.adb')
-rw-r--r-- | src/deck_io.adb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/deck_io.adb b/src/deck_io.adb index 8a3637e..5207fe7 100644 --- a/src/deck_io.adb +++ b/src/deck_io.adb @@ -203,7 +203,9 @@ package body Deck_IO is is use type Pat.Match_Location; Matches : Pat.Match_Array (0 .. 1); - Regexp : Pat.Pattern_Matcher := Pat.Compile ("{{(?:\w+:)?(\w+)}}", Pat.Single_Line); + Regexp : Pat.Pattern_Matcher := + -- My god I hate regular expressions, they're such unreadable nonsense + Pat.Compile ("{{(?:(?:\w|\s)+:)?((?:\w|\s)+)}}", Pat.Single_Line); Marker : Positive := Raw_Data'First; begin loop |