Skip to content

Wrong render of the regular expression string in the Basics tutorial #50

@s-and-witch

Description

@s-and-witch

Here https://hackage.haskell.org/package/regex-tdfa-1.3.2/docs/Text-Regex-TDFA.html in Basics section first regular expression rendered by haddock as

>>> let emailRegex = "[a-zA-Z0-9+._-]+\[-a-zA-Z]+\.[a-z]+"

But that's not a valid Haskell string, it should be

let emailRegex = "[a-zA-Z0-9+._-]+\\@[-a-zA-Z]+\\.[a-z]+"

Perhaps you need to add more slashes or something

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions