about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-09-08 06:06:39 +0000
committerbors <bors@rust-lang.org>2019-09-08 06:06:39 +0000
commit50362372d68eae9b02a351f0fab42962cd0518de (patch)
tree8e422d59a0e8f4068188669c375de9324157de1a /src
parent4a8ccdbeeb346e80417bd6b5c9cb7d62e225659d (diff)
parent991f4366336820a61dd7f22e849c57d4a64b41ea (diff)
downloadrust-50362372d68eae9b02a351f0fab42962cd0518de.tar.gz
rust-50362372d68eae9b02a351f0fab42962cd0518de.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/librustdoc/html/static/storage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/storage.js b/src/librustdoc/html/static/storage.js
index 40a6a156972..eae998ca3ec 100644
--- a/src/librustdoc/html/static/storage.js
+++ b/src/librustdoc/html/static/storage.js
@@ -119,7 +119,7 @@ function switchTheme(styleElem, mainStyleElem, newTheme, saveTheme) {
 
 function getSystemValue() {
     var property = getComputedStyle(document.documentElement).getPropertyValue('content');
-    return property.replace(/\"\'/g, "");
+    return property.replace(/[\"\']/g, "");
 }
 
 switchTheme(currentTheme, mainTheme,