Skip to content

Commit b7ae795

Browse files
committed
variables: Relax variable name validation
Fixes #700
1 parent 7833bf1 commit b7ae795

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/models/variables.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const {GObject} = imports.gi;
2323
const {FlatpakSharedModel} = imports.models.shared;
2424
const {FlatsealOverrideStatus} = imports.models.overrideStatus;
2525

26-
var VAR_REGEXP = /^\w+=[\S ]+$/;
26+
var VAR_REGEXP = /^[^;\s]+=[\S ]+$/;
2727

2828
var FlatpakVariablesModel = GObject.registerClass({
2929
GTypeName: 'FlatpakVariablesModel',
@@ -75,7 +75,7 @@ var FlatpakVariablesModel = GObject.registerClass({
7575

7676
static deserialize(value) {
7777
return value
78-
.split(/(?=;[\w\s]+=)/)
78+
.split(/(?=;[^;]+=)/)
7979
.map(v => v.replace(/^;/, ''));
8080
}
8181

0 commit comments

Comments
 (0)