import { kaizenTokensByName } from "./kaizenTokens" ; export const quotesPattern = /("|')/g ; export const operatorPattern = /^\s*[\+\-\*\/]\s*$/ ; export const migrateToNewVarPattern = /kz-(?!(var))/ ; export const sassInterpolationPattern = /^#\{(.*)\}$/ ; export const isOperator = ( value ) => operatorPattern . test ( value ) ; export const kaizenTokenPattern = new RegExp ( `(@|\\$)(${ Object . keys ( kaizenTokensByName ) . join ( "|" ) })` ) ; export const entireLineKaizenTokenPattern = new RegExp ( `^${ kaizenTokenPattern . source }$` ) ; export const isKaizenTokenVariable = ( value ) => entireLineKaizenTokenPattern . test ( value ) ;