diff options
| author | 2024-11-19 23:05:09 +0100 | |
|---|---|---|
| committer | 2024-11-19 23:05:09 +0100 | |
| commit | 0f4bcdad9b3bde1cf7724069e774eff198a7169c (patch) | |
| tree | 5b96a8c9e19d11ba7fd7b35cad70f161927943ef /lib/Minz/ExtensionManager.php | |
| parent | 6970723aebae7ae90405368e6314e113885cd0de (diff) | |
Fix HTML pattern in install (#7009)
Slashes now need to be escaped because of `v` mode:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Regular_expressions/Character_class#v-mode_character_class
https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/pattern#overview
Edge:
> Pattern attribute value [0-9A-Z/a-z_.\-]{1,64}(:[0-9]{2,5})? is not a valid regular expression: Uncaught SyntaxError: Invalid regular expression: /[0-9A-Z/a-z_.\-]{1,64}(:[0-9]{2,5})?/v: Invalid character in character class
Firefox:
> Impossible de vérifier <input pattern='[0-9A-Z/a-z_.\-]{1,64}(:[0-9]{2,5})?'> car « /[0-9A-Z/a-z_.\-]{1,64}(:[0-9]{2,5})?/v » n’est pas une expression régulière valide : invalid character in class in regular expression
Diffstat (limited to 'lib/Minz/ExtensionManager.php')
0 files changed, 0 insertions, 0 deletions
