Skip to content

Commit 2c8d532

Browse files
committed
fix: only match oracle or vault in regex and newline
Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
1 parent 427712c commit 2c8d532

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/runtime-upgrade.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ async function setAllClientReleases(api: ApiPromise, baseUrl: String, runtimeNam
8282
return res.text();
8383
});
8484

85-
const regex = new RegExp("([a-f0-9]+)\\\s*[.]\/(([a-z]+)-parachain-metadata-" + runtimeName + ")", "g");
86-
let matches = []
85+
const regex = new RegExp("([a-f0-9]+)\\\s*[.]\/((oracle|vault)-parachain-metadata-" + runtimeName + ")\n", "g");
86+
let matches = [];
8787
let match;
8888
while ((match = regex.exec(checksumFile)) !== null) {
8989
matches.push([match[1], match[2], match[3]]);

0 commit comments

Comments
 (0)