packages feed

regex-tdfa 1.3.1.4 → 1.3.1.5

raw patch · 4 files changed

+16/−4 lines, 4 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,14 @@ For the package version policy (PVP), see  http://pvp.haskell.org/faq . +### 1.3.1.5++_2022-07-18, Andreas Abel_++- Allow dash (`-`) as start of a range, e.g. `[--z]`+  ([#1](https://github.com/haskell-hvr/regex-tdfa/issues/1),+  [#45](https://github.com/haskell-hvr/regex-tdfa/pull/45))+- Tested with GHC 7.4 - 9.4+ ### 1.3.1.4  _2022-07-17, Andreas Abel_
lib/Text/Regex/TDFA.hs view
@@ -124,6 +124,9 @@ >>> getAllTextMatches ("john anne yifan" =~ "[a-z]+") :: [String] ["john","anne","yifan"] +>>> getAllTextMatches ("* - . a + z" =~ "[--z]+") :: [String]+["-",".","a","z"]+ @  = Feature support
lib/Text/Regex/TDFA/ReadRegex.hs view
@@ -120,7 +120,7 @@ p_bracket = (char '[') >> ( (char '^' >> p_set True) <|> (p_set False) )  p_set :: Bool -> P Pattern-p_set invert = do initial <- (option "" ((char ']' >> return "]") <|> (char '-' >> return "-")))+p_set invert = do initial <- option "" (char ']' >> return "]")                   values <- if null initial then many1 p_set_elem else many p_set_elem                   _ <- char ']'                   ci <- char_index@@ -161,7 +161,7 @@  p_set_elem_range :: P BracketElement p_set_elem_range = try $ do-  start <- noneOf "]-"+  start <- noneOf "]"   _  <- char '-'   end <- noneOf "]"   return $ BERange start end
regex-tdfa.cabal view
@@ -1,6 +1,6 @@ cabal-version:          1.12 name:                   regex-tdfa-version:                1.3.1.4+version:                1.3.1.5  build-Type:             Simple license:                BSD3@@ -46,7 +46,7 @@ source-repository this   type:                git   location:            https://github.com/haskell-hvr/regex-tdfa.git-  tag:                 v1.3.1.4+  tag:                 v1.3.1.5  flag force-O2   default: False