fix #1656: false positive report on VirusTotal

This commit is contained in:
antelle 2020-12-16 18:53:15 +01:00
parent 95c077a0ba
commit 251b763ea9
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 6 additions and 1 deletions

View File

@ -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:

View File

@ -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