ipikuka / remark-flexible-markers

Remark plugin to add custom mark element with customizable properties in markdown
MIT License
9 stars 0 forks source link

Invalid regular expression: invalid group specifier name #3

Open hqqxxf opened 3 months ago

hqqxxf commented 3 months ago

IOS 16 regex bug:

image
talatkuyuk commented 3 months ago

Thank you for reporting the issue.

ios 16? which version of chrome or safari you use in which device? I don't get any error from my safari (v17.5) or chrome (v.125) in my macbook pro.

The regex lookbehind is supported as of specific version of chrome and safari. You can have look at https://caniuse.com/?search=lookbehind%20regex

I tried the regex in https://regex101.com/r/r8zk5N/1 using different flavor, only rust and golang raised an error, but ECMAScript (js) has no problem with it.

hqqxxf commented 3 months ago

image @talatkuyuk

talatkuyuk commented 3 months ago

The regex you mentioned in the issue consists regex lookbehind.

From https://developer.apple.com/documentation/safari-release-notes/safari-16_4-release-notes

Added support for RegExp lookbehind assertions.

Regex lookbehind is supported as of safari version 16.4 which needs to have minimum ios 16.4 in your device iphone 13.

So, I advice you to update ios from 16.2 to 17.5 which is latest in your device.

Then, let me know if the issue is resolved to close it.

talatkuyuk commented 2 months ago

Do you plan to close the issue?