Skip to content

Commit

Permalink
generate-sri.js: remove RegExp call; sed already does this.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Nov 25, 2017
1 parent 80ee9b6 commit b18a644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/generate-sri.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', `(\\s${file.configPropertyName}:\\s+"|')(\\S+)("|')`, '$1' + integrity + '$3', configFile)
})
})

0 comments on commit b18a644

Please sign in to comment.