recurly / recurly-js

Simple subscription billing in the browser
https://js.recurly.com/
MIT License
646 stars 139 forks source link

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

Closed stulzer closed 3 months ago

stulzer commented 4 months ago

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.