]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Improve build/generate-sri.js regex (#29753)
authorNoah Rosenzweig <rosenzweig.noah@gmail.com>
Sat, 21 Nov 2020 19:39:33 +0000 (20:39 +0100)
committerGitHub <noreply@github.com>
Sat, 21 Nov 2020 19:39:33 +0000 (21:39 +0200)
commit21737ed530b7ac37fe1ce67026df373c04282ac8
tree146444e42297db1abf765eb5ff4cdfe0f28596b5
parentd365831bce972ce089ebd89e91ba7c2cf6e13c5e
Improve build/generate-sri.js regex (#29753)

When using single-quotes in config.yml, the previous
regular expression in build/generate-cli.js wasn't working correctly,
it was replacing ALL string values with hashes.
Now both double- and single-quotes can be used in config.yml,
and the RegExp will work as expected.

Also, allow trailing whitespaces and empty ("") values to be matched.

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
build/generate-sri.js