mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-10 00:11:19 +00:00
fix(docker): parse peer-suffixed lockfile packages
This commit is contained in:
parent
f799da0947
commit
cf46f2e3a0
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ function packageSpecFromLockfileKey(key) {
|
|||
if (typeof key !== "string") {
|
||||
return undefined;
|
||||
}
|
||||
const normalizedKey = key.startsWith("/") ? key.slice(1) : key;
|
||||
const normalizedKey = (key.startsWith("/") ? key.slice(1) : key).replace(/\(.+\)$/, "");
|
||||
const separator = normalizedKey.lastIndexOf("@");
|
||||
if (separator <= 0) {
|
||||
return undefined;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue