Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ClydeTime/Surge
/ extractValues
Function
extractValues
Script/Task/videoqq.js:609–614 ·
view source on GitHub ↗
(str, keys)
Source
from the content-addressed store, hash-verified
607
608
// 提取Cookie的指定字段
609
function
extractValues(str, keys) {
610
let
results = keys.map((key) =>
611
str.split(
"; "
).find((s) => s.startsWith(key +
"="
))
612
);
613
return
results.join(
";"
);
614
}
615
616
617
Callers
nothing calls this directly
Calls
1
join
Method · 0.45
Tested by
no test coverage detected