karser / KarserRecaptcha3Bundle

Google ReCAPTCHA v3 for Symfony
MIT License
160 stars 22 forks source link

Substitute hyphens by underscores to generate recaptcha callback valid name #32

Closed 3ndphasys closed 4 years ago

3ndphasys commented 4 years ago

Hyphens are often used in html id attributes, but they are not allowed for variable names in JavaScript, breaking generated recaptcha code.

karser commented 4 years ago

Makes sense. Thanks for your PR @3ndphasys