Unverified Commit 864d5c6b authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update removeHash handling for stats-app (#30235)

parent 9d4e7b45
......@@ -67,7 +67,7 @@ async function runConfigs(
const results = await glob(rename.srcGlob, { cwd: statsAppDir })
for (const result of results) {
let dest = rename.removeHash
? result.replace(/(\.|-)[0-9a-f]{20}(\.|-)/g, '$1HASH$2')
? result.replace(/(\.|-)[0-9a-f]{16}(\.|-)/g, '$1HASH$2')
: rename.dest
if (result === dest) continue
await fs.move(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment