Skip to content

Regex not compatible on lower versions of IOS / Safari #12

Closed as not planned
@laomu1988

Description

@laomu1988

Initial checklist

Affected package

remark-gfm4.0.0

Steps to reproduce

[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:.[-\w]+)+)/gu, findEmail]

Create JS crash on Safari / IOS(15.3)

Actual behavior

got error "Invalid regular expression: invalid group specifier name"

Expected behavior

not got error

Runtime

No response

Package manager

No response

Operating system

No response

Build and bundle tools

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions