gitea push

This commit is contained in:
2026-05-09 12:19:29 -06:00
parent 06113c95b8
commit 429461e985
1481 changed files with 74306 additions and 52475 deletions
+6 -9
View File
@@ -138,18 +138,15 @@ function aliasResolveHandler(
// windows request with native backslashes
// (e.g. `C:\\abs\\foo\\baz` against `name: "C:\\abs\\foo"`)
// otherwise fails `startsWith("C:\\abs\\foo/")` and is
// silently skipped. The `!hasRequestString` branch already
// uses `absolutePath`; mirroring it here closes the gap
// without changing any existing matches.
// silently skipped. Mirroring the `absolutePath` check in
// both branches closes the gap without changing any
// existing matches.
const { absolutePath } = item;
const matchRequest =
innerRequest === item.name ||
(!item.onlyModule &&
(hasRequestString
? innerRequest.startsWith(item.nameWithSlash) ||
(item.absolutePath !== null &&
innerRequest.startsWith(item.absolutePath))
: item.absolutePath !== null &&
innerRequest.startsWith(item.absolutePath)));
((hasRequestString && innerRequest.startsWith(item.nameWithSlash)) ||
(absolutePath !== null && innerRequest.startsWith(absolutePath))));
const matchWildcard = !item.onlyModule && item.wildcardPrefix !== null;