diff --git a/js/csslint/parserlib.js b/js/csslint/parserlib.js index 1bb920a9..daea9ef8 100644 --- a/js/csslint/parserlib.js +++ b/js/csslint/parserlib.js @@ -39,7 +39,7 @@ self.parserlib = (() => { * @param {function} [alt] alternative check */ const customIdentChecker = (ex, re, alt) => (re = new RegExp(`^(?!(default|${ex ? ex + '|' : ''}${GlobalKeywords.join('|')})$)${re ? re.source : ''}`, 'i')) && - (p => p.tokenType === Tokens.IDENT && re.test(p.value) || (!alt || alt(p))); // eslint-disable-line no-use-before-define + (p => p.tokenType === Tokens.IDENT && re.test(p.value) || alt && alt(p)); // eslint-disable-line no-use-before-define const Properties = { 'accent-color': 'auto | ', @@ -55,7 +55,7 @@ self.parserlib = (() => { 'hanging | mathematical', 'animation': '[