Elm Exactly
Results /

elm-regex

elm/regex

Discussions of this project and its tests ↓

Showing 12 of 12 tests. Hover over a badge for the reason.

Testelm-0.19.1elm-0.19.2elm-0.19.3lamdera-1.5.0
RegexContainsTest
`Regex.contains` reports whether a regex matches anywhere in a string.
passpasspasspass
RegexFindTest
`Regex.find` returns one match for each non-overlapping run of the pattern.
passpasspasspass
RegexFromStringTest
`Regex.fromString` returns `Just` for a valid pattern and `Nothing` for an invalid one.
passpasspasspass
RegexIssue13FindStopsAtEmptyMatchTestelm19-bug
`Regex.find` stops at the first empty match instead of moving past it.
failfailfailfail
RegexIssue18SplitWordBoundaryTestelm19-bug
`Regex.split` on a zero-width match such as `\b` never terminates.
failfailfailfail
RegexIssue5EmptyCaptureGroupTestelm19-bug
A capture group that matches the empty string is reported as `Nothing`.
failfailfailfail
RegexIssue6SplitEmptyRegexTestelm19-bug
`Regex.split` with a regex matching the empty string loops forever, until memory runs out.
failfailfailfail
RegexMatchRecordTest
The `Match` records that `Regex.find`, `Regex.findAtMost` and `Regex.replace` produce carry the right `index`, `match`, `number` and `submatches`.
passpasspasspass
RegexNeverTest
`Regex.never` matches nothing, so `Regex.contains Regex.never` is `False` on a non-empty string.
passpasspasspass
RegexNonAsciiTest
elm/regex matches non-ASCII text by UTF-16 code units: `.` matches U+00E9 once and U+1F600 as two separate units.
passpasspasspass
RegexSplitTest
`Regex.split` cuts a string at every match and drops the matched text.
passpasspasspass
RegexUtf16IndexTest
`Match.index` counts UTF-16 code units, as `String.length` and `String.slice` do.
passpasspasspass

Discussions

Discuss this project·Search the discussions on GitHub

Discussions are on GitHub; one about this project has [p:elm-regex] in its title.