From 6a78e863c1900ab0d304d062a62e2442014dafde Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sat, 20 Jan 2024 01:33:42 +0100 Subject: [PATCH] Accepting a final "." at the end of a subdomain (both RFC1035 and Modern Parser). --- src/GenericParser/DomainParser.purs | 16 ++++++----- src/GenericParser/DomainParserRFC1035.purs | 33 ++++++++++------------ test/Main.purs | 10 ------- 3 files changed, 24 insertions(+), 35 deletions(-) diff --git a/src/GenericParser/DomainParser.purs b/src/GenericParser/DomainParser.purs index 58f23f2..b72d08e 100644 --- a/src/GenericParser/DomainParser.purs +++ b/src/GenericParser/DomainParser.purs @@ -19,7 +19,7 @@ import GenericParser.Parser (Parser(..) , failureError , current_position , char, letter, parse, string - , try, tryMaybe) + , tryMaybe) -- | From RFC 1035: