File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10119,16 +10119,17 @@ class FastSearchCard extends HTMLElement {
1011910119 const svgMatch = match[1].match(/<svg[^>]*>.*?<\/svg>/s);
1012010120 return svgMatch ? svgMatch[0].replace('width="24"', 'width="16"').replace('height="24"', 'height="16"') : '';
1012110121 }
10122+
1012210123 } else if (action.includes('30%')) {
1012310124 presetHTML = this.getLightTimerPresets();
10124- const match = presetHTML.match(/data-action="dim_30"[^>]*>(.*?)<span class="timer-preset-label">/s);
10125+ const match = presetHTML.match(/data-action="dim_30"[^>]*>\s* (.*?)\s* <span class="timer-preset-label">/s);
1012510126 if (match) {
1012610127 const svgMatch = match[1].match(/<svg[^>]*>.*?<\/svg>/s);
1012710128 return svgMatch ? svgMatch[0].replace('width="24"', 'width="16"').replace('height="24"', 'height="16"') : '';
1012810129 }
1012910130 } else if (action.includes('50%')) {
1013010131 presetHTML = this.getLightTimerPresets();
10131- const match = presetHTML.match(/data-action="dim_50"[^>]*>(.*?)<span class="timer-preset-label">/s);
10132+ const match = presetHTML.match(/data-action="dim_50"[^>]*>\s* (.*?)\s* <span class="timer-preset-label">/s);
1013210133 if (match) {
1013310134 const svgMatch = match[1].match(/<svg[^>]*>.*?<\/svg>/s);
1013410135 return svgMatch ? svgMatch[0].replace('width="24"', 'width="16"').replace('height="24"', 'height="16"') : '';
You can’t perform that action at this time.
0 commit comments