We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a005b3 commit e5b9f37Copy full SHA for e5b9f37
1 file changed
build/zip-examples.mjs
@@ -88,9 +88,9 @@ for (const file of sh.find(`${distFolder}/**/*.html`)) {
88
.toString()
89
.replace(new RegExp(`"/docs/${versionShort}/`, 'g'), '"../')
90
.replace(/"..\/dist\//g, '"../assets/dist/')
91
- .replace(/(<link href="\.\.\/.*) integrity=".*>/g, '$1>')
92
- .replace(/(<script src="\.\.\/.*) integrity=".*>/g, '$1></script>')
93
- .replace(/( +)<!-- favicons(.|\n)+<style>/i, ' <style>')
+ .replace(/(<link href="\.\.\/[^"]*"[^>]*) integrity="[^"]*"/g, '$1')
+ .replace(/<link[^>]*href="\.\.\/assets\/img\/favicons\/[^"]*"[^>]*>/g, '')
+ .replace(/(<script src="\.\.\/[^"]*"[^>]*) integrity="[^"]*"/g, '$1')
94
new sh.ShellString(fileContents).to(file)
95
}
96
0 commit comments