diff options
Diffstat (limited to 'build/generate-sri.js')
-rw-r--r-- | build/generate-sri.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build/generate-sri.js b/build/generate-sri.js index cfbf377716..de269b0405 100644 --- a/build/generate-sri.js +++ b/build/generate-sri.js @@ -55,6 +55,6 @@ files.forEach(file => { console.log(`${file.configPropertyName}: ${integrity}`) - sh.sed('-i', new RegExp(`(\\s${file.configPropertyName}:\\s+"|')(\\S+)("|')`), `$1${integrity}$3`, configFile) + sh.sed('-i', new RegExp(`^(\\s+${file.configPropertyName}:\\s+["'])\\S*(["'])`), `$1${integrity}$2`, configFile) }) }) |