GeezerVison is showing github.com — Add U+005E (^) to the path percent-encode set · jsdom/whatwg-url@45174a8
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: lib/percent-encoding.js +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -65,14 +65,14 @@ function isSpecialQueryPercentEncode(c) { | 65 | 65 | } | 66 | 66 |
| 67 | 67 | // https://url.spec.whatwg.org/#path-percent-encode-set | 68 | | -const extraPathPercentEncodeSet = new Set([p("?"), p("`"), p("{"), p("}")]); | | 68 | +const extraPathPercentEncodeSet = new Set([p("?"), p("`"), p("{"), p("}"), p("^")]); | 69 | 69 | function isPathPercentEncode(c) { | 70 | 70 | return isQueryPercentEncode(c) || extraPathPercentEncodeSet.has(c); | 71 | 71 | } | 72 | 72 |
| 73 | 73 | // https://url.spec.whatwg.org/#userinfo-percent-encode-set | 74 | 74 | const extraUserinfoPercentEncodeSet = | 75 | | - new Set([p("/"), p(":"), p(";"), p("="), p("@"), p("["), p("\\"), p("]"), p("^"), p("|")]); | | 75 | + new Set([p("/"), p(":"), p(";"), p("="), p("@"), p("["), p("\\"), p("]"), p("|")]); | 76 | 76 | function isUserinfoPercentEncode(c) { | 77 | 77 | return isPathPercentEncode(c) || extraUserinfoPercentEncodeSet.has(c); | 78 | 78 | } | |
Collapse file Copy file name to clipboardExpand all lines: scripts/get-latest-platform-tests.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -13,7 +13,7 @@ const path = require("path"); | 13 | 13 | // 1. Go to https://github.com/web-platform-tests/wpt/tree/master/url | 14 | 14 | // 2. Press "y" on your keyboard to get a permalink | 15 | 15 | // 3. Copy the commit hash | 16 | | -const commitHash = "7c9c41aedbcd49bf96fb9e35a133293b3977b83d"; | | 16 | +const commitHash = "d86fcc9e8764155485975a2a9bbfc5ec4aa9e75b"; | 17 | 17 |
| 18 | 18 | const urlPrefix = `https://raw.githubusercontent.com/web-platform-tests/wpt/${commitHash}/url/`; | 19 | 19 | const targetDir = path.resolve(__dirname, "..", "test", "web-platform-tests"); | |
|