mirror of https://github.com/keeweb/keeweb
fix #1656: false positive report on VirusTotal
parent
95c077a0ba
commit
251b763ea9
|
@ -5,6 +5,8 @@ import ThemeDefaults from '!!raw-loader!../../styles/themes/_theme-defaults.scss
|
|||
|
||||
const ThemeVars = {
|
||||
themeDefaults: null,
|
||||
newLineRegEx: /[\n\s]+/g, // don't inline it, see #1656
|
||||
themeVarsRegEx: /([\w\-]+):([^:]+),(\$)?/g,
|
||||
|
||||
init() {
|
||||
if (this.themeDefaults) {
|
||||
|
@ -24,7 +26,7 @@ const ThemeVars = {
|
|||
|
||||
apply(cssStyle) {
|
||||
this.init();
|
||||
const matches = ThemeVarsScss.replace(/[\n\s]+/g, '').matchAll(/([\w\-]+):([^:]+),(\$)?/g);
|
||||
const matches = ThemeVarsScss.replace(this.newLineRegEx, '').matchAll(this.themeVarsRegEx);
|
||||
for (let [, name, def, last] of matches) {
|
||||
if (last && def.endsWith(')')) {
|
||||
// definitions are written like this:
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.16.4 (2020-12-16)
|
||||
`-` fix #1656: false positive report on VirusTotal
|
||||
|
||||
##### v1.16.3 (2020-12-10)
|
||||
`-` fix #1650: keyfiles stored in the app can't be used
|
||||
|
||||
|
|
Loading…
Reference in New Issue