Skip to content

Commit 5036237

Browse files
committed
Auto merge of #64096 - GuillaumeGomez:theme-regex-fix, r=Mark-Simulacrum
Fix regex replacement in theme detection Fixes #64061. This is sadly a lot of bad luck: after making the changes and re-build the docs, I just forgot to force reload the page. Hence having the old (working) version with two replacements instead of the failing regex. Sorry again about that... cc @fenhl r? @Mark-Simulacrum
2 parents 4a8ccdb + 991f436 commit 5036237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/storage.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function switchTheme(styleElem, mainStyleElem, newTheme, saveTheme) {
119119

120120
function getSystemValue() {
121121
var property = getComputedStyle(document.documentElement).getPropertyValue('content');
122-
return property.replace(/\"\'/g, "");
122+
return property.replace(/[\"\']/g, "");
123123
}
124124

125125
switchTheme(currentTheme, mainTheme,

0 commit comments

Comments
 (0)