)]}'
{
  "commit": "520c7d2c568f05dbd615b352e366681742d7672d",
  "tree": "43c0551c4b3a2866704587b4678a60735b6288eb",
  "parents": [
    "72bd2c7547d155b41085057d311ff684e6bd439b"
  ],
  "author": {
    "name": "reiern70",
    "email": "reiern70@gmail.com",
    "time": "Thu Nov 12 18:04:05 2026 -0500"
  },
  "committer": {
    "name": "reiern70",
    "email": "reiern70@gmail.com",
    "time": "Thu Nov 12 18:04:05 2026 -0500"
  },
  "message": "Escape the hyphens in the pattern of EmailAddressValidator\n\nAbstractTextComponent, like the HTML5Attributes behavior, renders the\npattern of every PatternValidator into the HTML pattern attribute.\nBrowsers compile that attribute as a JavaScript regular expression with\nthe v flag, where a hyphen left unescaped in a character class is a\nsyntax error. The pattern of EmailAddressValidator had four such classes\n([_A-Za-z0-9-]), so Chrome logged \"Invalid regular expression\" on every\npage with an EmailTextField and again on each submit, and Chrome and\nFirefox both ignored the attribute.\n\nThe hyphens are escaped now. Java reads the pattern as before and it\nmatches the same addresses; the browser compiles it and enforces it. An\napplication with an EmailTextField now sees the browser reject an address\nsuch as \"name@host\" before the form is submitted, with the browser\u0027s own\nmessage, where the request used to reach the server and fail\nEmailAddressValidator there. The javadoc of PatternValidator now says\nthat its pattern is rendered for the browser and has to be valid there\nas well.\n\nGitHub issue #1884\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "55e353a850e8b258d9729d2125e4703102893288",
      "old_mode": 33188,
      "old_path": "wicket-core-tests/src/test/java/org/apache/wicket/validation/validator/EmailValidatorTest.java",
      "new_id": "cda9170e689b1ff90b4d775a8b5394c68994b52a",
      "new_mode": 33188,
      "new_path": "wicket-core-tests/src/test/java/org/apache/wicket/validation/validator/EmailValidatorTest.java"
    },
    {
      "type": "modify",
      "old_id": "a9d5b03b3f3e38587853f0c29c93eb80bf2c954e",
      "old_mode": 33188,
      "old_path": "wicket-core/src/main/java/org/apache/wicket/validation/validator/EmailAddressValidator.java",
      "new_id": "4415aab3dd3cfea4ec0104ac6b4d7fceff4b09e6",
      "new_mode": 33188,
      "new_path": "wicket-core/src/main/java/org/apache/wicket/validation/validator/EmailAddressValidator.java"
    },
    {
      "type": "modify",
      "old_id": "aac78881ec0c26f75fe65947e5f18d1ed7139014",
      "old_mode": 33188,
      "old_path": "wicket-core/src/main/java/org/apache/wicket/validation/validator/PatternValidator.java",
      "new_id": "90e317cdad0065f36f55a787e71b6a476648af35",
      "new_mode": 33188,
      "new_path": "wicket-core/src/main/java/org/apache/wicket/validation/validator/PatternValidator.java"
    }
  ]
}
