Closed WorldThirteen closed 3 years ago
Safari (desktop and iOS) does not support a negative look behind in the regular expression (caniuse). While such a feature is used in the next regular expression: https://github.com/PeculiarVentures/x509/blob/master/src/name.ts#L162. UPD: one more https://github.com/PeculiarVentures/x509/blob/master/src/name.ts#L186.
Safari throws a runtime error: SyntaxError: Invalid regular expression: invalid group specifier name.
SyntaxError: Invalid regular expression: invalid group specifier name
Steps to reproduce:
<script src="https://unpkg.com/@peculiar/x509"></script>
The problem is with Lookbehind expression
http://blog.stevenlevithan.com/archives/mimic-lookbehind-javascript/comment-page-1
I published the new version 1.0.10
1.0.10
Try it
Safari (desktop and iOS) does not support a negative look behind in the regular expression (caniuse). While such a feature is used in the next regular expression: https://github.com/PeculiarVentures/x509/blob/master/src/name.ts#L162. UPD: one more https://github.com/PeculiarVentures/x509/blob/master/src/name.ts#L186.
Safari throws a runtime error:
SyntaxError: Invalid regular expression: invalid group specifier name
.Steps to reproduce:
<script src="https://unpkg.com/@peculiar/x509"></script>