test: simplify secret coverage path parsing · openclaw/openclaw@56fa80d
steipete
·
2026-05-09
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -277,9 +277,11 @@ async function ensureRuntimeWebToolsLoaded(): Promise<void> {
|
277 | 277 | } |
278 | 278 | |
279 | 279 | function toConcretePathSegments(pathPattern: string, wildcardToken = "sample"): string[] { |
280 | | -const segments = pathPattern.split(".").filter(Boolean); |
281 | 280 | const out: string[] = []; |
282 | | -for (const segment of segments) { |
| 281 | +for (const segment of pathPattern.split(".")) { |
| 282 | +if (!segment) { |
| 283 | +continue; |
| 284 | +} |
283 | 285 | if (segment === "*") { |
284 | 286 | out.push(wildcardToken); |
285 | 287 | continue; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。