diff --git a/src/model/model.ts b/src/model/model.ts index 1f003bf..c1c8e8f 100644 --- a/src/model/model.ts +++ b/src/model/model.ts @@ -81,7 +81,7 @@ export class Model { ast.value = value; if (sec === 'r' || sec === 'p') { - const tokens = value.split(', '); + const tokens = value.split(',').map(n => n.trim()); for (let i = 0; i < tokens.length; i++) { tokens[i] = key + '_' + tokens[i];