Skip to content

Commit 991f436

Browse files
Fix regex replacement in theme detection
1 parent fdaf594 commit 991f436

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)