mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-06 13:46:42 +02:00
Fix HTML head content built from 'Download examples' button (#41468)
This commit is contained in:
@@ -88,9 +88,9 @@ for (const file of sh.find(`${distFolder}/**/*.html`)) {
|
|||||||
.toString()
|
.toString()
|
||||||
.replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
|
.replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
|
||||||
.replace(/"..\/dist\//g, '"../assets/dist/')
|
.replace(/"..\/dist\//g, '"../assets/dist/')
|
||||||
.replace(/(<link href="\.\.\/.*) integrity=".*>/g, '$1>')
|
.replace(/(<link href="\.\.\/[^"]*"[^>]*) integrity="[^"]*"/g, '$1')
|
||||||
.replace(/(<script src="\.\.\/.*) integrity=".*>/g, '$1></script>')
|
.replace(/<link[^>]*href="\.\.\/assets\/img\/favicons\/[^"]*"[^>]*>/g, '')
|
||||||
.replace(/( +)<!-- favicons(.|\n)+<style>/i, ' <style>')
|
.replace(/(<script src="\.\.\/[^"]*"[^>]*) integrity="[^"]*"/g, '$1')
|
||||||
new sh.ShellString(fileContents).to(file)
|
new sh.ShellString(fileContents).to(file)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user