remove "useless" escape (#1436)

closes https://github.com/symfony/symfony/issues/60983
This commit is contained in:
Craig Heydenburg
2025-07-08 16:58:35 +02:00
committed by GitHub
parent 137e34765a
commit 061f8015e8
@@ -1,5 +1,5 @@
const nameCheck = /^[-_a-zA-Z0-9]{4,22}$/;
const tokenCheck = /^[-_\/+a-zA-Z0-9]{24,}$/;
const tokenCheck = /^[-_/+a-zA-Z0-9]{24,}$/;
// Generate and double-submit a CSRF token in a form field and a cookie, as defined by Symfony's SameOriginCsrfTokenManager
document.addEventListener('submit', function (event) {