gitea push
This commit is contained in:
+6
-9
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user