diff --git a/src/models/variables.js b/src/models/variables.js index 9bbc70fa..5f9c4ecd 100644 --- a/src/models/variables.js +++ b/src/models/variables.js @@ -23,7 +23,7 @@ const {GObject} = imports.gi; const {FlatpakSharedModel} = imports.models.shared; const {FlatsealOverrideStatus} = imports.models.overrideStatus; -var VAR_REGEXP = /^\w+=[\S ]+$/; +var VAR_REGEXP = /^[^;]+=[\S ]+$/; var FlatpakVariablesModel = GObject.registerClass({ GTypeName: 'FlatpakVariablesModel', @@ -75,7 +75,7 @@ var FlatpakVariablesModel = GObject.registerClass({ static deserialize(value) { return value - .split(/(?=;[\w\s]+=)/) + .split(/(?=;[^;]+=)/) .map(v => v.replace(/^;/, '')); }