@@ -35,15 +35,14 @@ function replaceVariable(elem, variables, functionArgs, forceVariableAsString, e
3535 if ( associatedValue instanceof Element ) {
3636 // Nothing to be done in here.
3737 return associatedValue ;
38- } else if ( [ 'number' , 'string' , 'boolean' ] . includes ( typeof associatedValue ) ) {
39- if ( typeof associatedValue === 'boolean' ) {
40- return new IdentElement (
41- associatedValue . toString ( ) , startPos , endPos , lineNumber ) ;
42- } else if ( typeof associatedValue === 'number' ||
43- // eslint-disable-next-line no-extra-parens
44- ( ! forceVariableAsString && matchInteger ( associatedValue ) === true ) ) {
45- return new NumberElement ( associatedValue , startPos , endPos , lineNumber ) ;
46- }
38+ } else if ( typeof associatedValue === 'boolean' ) {
39+ return new IdentElement (
40+ associatedValue . toString ( ) , startPos , endPos , lineNumber ) ;
41+ } else if ( typeof associatedValue === 'number' ||
42+ // eslint-disable-next-line no-extra-parens
43+ ( ! forceVariableAsString && matchInteger ( associatedValue ) === true ) ) {
44+ return new NumberElement ( associatedValue , startPos , endPos , lineNumber ) ;
45+ } else if ( typeof associatedValue === 'string' ) {
4746 return new StringElement (
4847 associatedValue ,
4948 startPos ,
0 commit comments