Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Invalid regular expression: missing terminating ] for character class #880

Closed
stulzer opened this issue Apr 25, 2024 · 0 comments

Comments

@stulzer
Copy link

stulzer commented Apr 25, 2024

When a user set their iPhone to Chinese the hosted-fields.js breaks with SyntaxError: Invalid regular expression: missing terminating ] for character class

Kt = RegExp("['鈥橾", "g"),

It doesn't matter if the application running supports Chinese or not, it simply breaks and the CC fields doesn't work.

@stulzer stulzer closed this as completed Jun 12, 2024
recurly-integrations pushed a commit that referenced this issue Jul 30, 2024
[Full Changelog](v4.29.1...v4.29.2)

**Merged Pull Requests**

- Adds billing address override to CashApp implementation [#890](#890) ([chrissrogers](https://github.com/chrissrogers))
- Small venmo tweaks for development debugging [#841](#841) ([douglasmiller](https://github.com/douglasmiller))

**Closed Issues**

- SyntaxError: Invalid regular expression: missing terminating ] for character class [#880](#880)
- Recurly (3DS) in Test Mode with `<dialog />` elements [#876](#876)
- Recurly-JS is no longer updating the DefinitelyTyped repo [#875](#875)
- Formatting on DefinitelyTyped update [#856](#856)
- Inconsistent Autofill behavior with Recurly.js Elements [#845](#845)

##### Minified MD5 Checksum
```
3b362833dcadd2e6b87b06f217b1591a ./build/recurly.min.js
```
##### [SRI Hash](https://www.srihash.org/)
```
IMfB8TGNE8AccY/XLO+r19nboApM3KhPF7e8WcxhLMUpJLR92z+p6n2XpmiaYjSJ
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant