(str: string)
| 31 | const tokenFunctionRegex = /token\(([^)]+)\)/g |
| 32 | const closingParenthesisRegex = /\)$/g |
| 33 | const hasTokenReference = (str: string) => str.includes('token(') |
| 34 | |
| 35 | const tokenReplacer = (a: string, b?: string) => |
| 36 | b ? (a.endsWith(')') ? a.replace(closingParenthesisRegex, `, ${b})`) : `var(${a}, ${b})`) : a |