This repository was archived by the owner on Jun 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
src/Text/Markdown/SlamDown/Parser Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 3232 "purescript-sets" : " ^3.0.0" ,
3333 "purescript-strings" : " ^3.0.0" ,
3434 "purescript-strongcheck" : " ^3.0.0" ,
35+ "purescript-unicode" : " ^3.0.1" ,
3536 "purescript-validation" : " ^3.0.0" ,
3637 "purescript-datetime" : " ^3.0.0"
3738 }
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import Control.Lazy as Lazy
1212
1313import Data.Array as A
1414import Data.Bifunctor (lmap )
15+ import Data.Char.Unicode (isAlphaNum )
1516import Data.Const (Const (..))
1617import Data.DateTime as DT
1718import Data.Either (Either (..))
@@ -159,13 +160,6 @@ inlines = L.many inline2 <* PS.eof
159160 alphaNumStr ∷ P.Parser String (SD.Inline a )
160161 alphaNumStr = SD.Str <$> someOf isAlphaNum
161162
162- isAlphaNum ∷ Char → Boolean
163- isAlphaNum c =
164- (s >= " a" && s <= " z" ) ||
165- (s >= " A" && s <= " Z" ) ||
166- (s >= " 0" && s <= " 9" )
167- where s = S .singleton c
168-
169163 emphasis
170164 ∷ P.Parser String (SD.Inline a )
171165 → (L.List (SD.Inline a ) → SD.Inline a )
Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ simpleText = SD.Str <$> alphaNum
413413alphaNum ∷ Gen.Gen String
414414alphaNum = do
415415 len ← Gen .chooseInt 5 10
416- S .fromCharArray <$> Gen .vectorOf len (Gen .elements (CH .fromCharCode 97 ) $ L .fromFoldable (S .toCharArray " qwertyuioplkjhgfdszxcvbnm123457890 " ))
416+ S .fromCharArray <$> Gen .vectorOf len (Gen .elements (CH .fromCharCode 97 ) $ L .fromFoldable (S .toCharArray " qwertyuioplkjhgfdszxcvbnm123457890ąćęóśźżĄĆĘÓŚŹŻ " ))
417417
418418
419419main ∷ ∀ e . Eff (TestEffects e ) Unit
You can’t perform that action at this time.
0 commit comments