Closed as duplicate of#10
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldn’t find anything (or linked relevant results below)
Affected package
mdast-util-gfm-autolink-literal
Steps to reproduce
Currently the email search regex uses a lookbehind assertion, which unfortunately doesn't support older iOS versions <=16 (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Lookbehind_assertion), meaning that users would run into errors with this. I currently patch out this regex, but I thought it would be helpful for others if this package did some workaround to lookbehinds here.
mdast-util-gfm-autolink-literal/lib/index.js
Line 135 in ba83f42
Actual behavior
Lookbehind assertion causes error
Expected behavior
Lookbehind assertion avoided because it doesn't support older iOS
Runtime
iOS/Safari 16
Package manager
N/A
Operating system
N/A
Build and bundle tools
Next.js