JonathanWilbur / asn1-ts

ASN.1 TypeScript library, including codecs for Basic Encoding Rules (BER) and Distinguished Encoding Rules (DER).
MIT License
32 stars 6 forks source link

Library x509-ts do not work in Firefox, Edge or IE #6

Closed svkreml closed 4 years ago

svkreml commented 4 years ago

1) Create new NG project 2) add c = Certificate.fromBytes(null); 3) run 4) SyntaxError: invalid regexp group in browser console, page does not load

https://github.com/svkreml/fireFoxTestX509 project Example (i add it in src/app/app.component.ts)

do you have any regexp in lib?

JonathanWilbur commented 4 years ago

Interesting. I had just assumed that reasonably new web browsers would support named capture groups, but according to this, apparently many do not. I know where the issue is, and it should be reasonably a quick fix.

JonathanWilbur commented 4 years ago

I am pretty sure this is actually an issue with my ASN.1 library. I will copy this issue over there.

JonathanWilbur commented 4 years ago

@svkreml This issue is resolved with version 2.0.0, which is now released. Note that you will have to alter your package.json file to update the new major version of asn1-ts. I have not updated x509-ts with this dependency yet, but I will do so now.

JonathanWilbur commented 4 years ago

@svkreml , this is now fixed in the X.509 library as well, in version 0.11.11. Thank you again for reporting this.