Skip to content

Commit

Permalink
Merge pull request #169 from nodece/master
Browse files Browse the repository at this point in the history
fix: improve tokens separator
  • Loading branch information
hsluoyz authored Jul 8, 2020
2 parents 1a6cf5e + 687e96f commit 674bb52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 674bb52

Please sign in to comment.