mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
lint
This commit is contained in:
parent
63fb1309d3
commit
e99e71d215
@ -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
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user