This commit is contained in:
Daniel Schep 2018-12-13 09:32:46 -05:00
parent 63fb1309d3
commit e99e71d215
2 changed files with 3 additions and 3 deletions

View File

@ -270,9 +270,9 @@ class Variables {
(context, contents) => contents.trim()
);
if (!cleaned.match(/".*"/)) {
cleaned = cleaned.replace(/\s/g, '')
cleaned = cleaned.replace(/\s/g, '');
}
return cleaned
return cleaned;
}
/**
* @typedef {Object} MatchResult

View File

@ -647,7 +647,7 @@ describe('Variables', () => {
it('should accept whitespace in variables', () => {
service.custom = {
val0: '${self: custom.val}',
val: 'foobar'
val: 'foobar',
};
const expected = {
val: 'foobar',