/opt/canhelp/node_modules/tailwindcss/lib/util
NameSizeModeActions
applyImportantSelector.js13810644editdlrm
bigSign.js2890644editdlrm
buildMediaQuery.js7800644editdlrm
cloneDeep.js5440644editdlrm
cloneNodes.js19150644editdlrm
color.js39120644editdlrm
colorNames.js92430644editdlrm
configurePlugins.js6850644editdlrm
createPlugin.js9610644editdlrm
createUtilityPlugin.js19300644editdlrm
dataTypes.js90340644editdlrm
defaults.js10360644editdlrm
escapeClassName.js9580644editdlrm
escapeCommas.js2920644editdlrm
flattenColorPalette.js6630644editdlrm
formatVariantSelector.js116120644editdlrm
getAllConfigs.js17130644editdlrm
hashConfig.js5180644editdlrm
isKeyframeRule.js3400644editdlrm
isPlainObject.js4700644editdlrm
isSyntacticallyValidPropertyValue.js20720644editdlrm
log.js16060644editdlrm
math-operators.js52140644editdlrm
nameClass.js13160644editdlrm
negateValue.js10530644editdlrm
normalizeConfig.js149790644editdlrm
normalizeScreens.js56020644editdlrm
parseAnimationValue.js29120644editdlrm
parseBoxShadowValue.js26260644editdlrm
parseDependency.js11820644editdlrm
parseGlob.js8620644editdlrm
parseObjectStyles.js10250644editdlrm
pluginUtils.js111610644editdlrm
prefixSelector.js14080644editdlrm
pseudoElements.js69850644editdlrm
removeAlphaVariables.js10730644editdlrm
resolveConfig.js93470644editdlrm
resolveConfigPath.js22890644editdlrm
responsive.js6720644editdlrm
splitAtTopLevelOnly.js18050644editdlrm
tap.js2660644editdlrm
toColorValue.js3330644editdlrm
toPath.js9510644editdlrm
transformThemeValue.js22770644editdlrm
validateConfig.js13590644editdlrm
validateFormalSyntax.js9980644editdlrm
withAlphaVariable.js20560644editdlrm
Edit: /opt/canhelp/node_modules/tailwindcss/lib/util/toPath.js (951B)
/** * Parse a path string into an array of path segments. * * Square bracket notation `a[b]` may be used to "escape" dots that would otherwise be interpreted as path separators. * * Example: * a -> ['a'] * a.b.c -> ['a', 'b', 'c'] * a[b].c -> ['a', 'b', 'c'] * a[b.c].e.f -> ['a', 'b.c', 'e', 'f'] * a[b][c][d] -> ['a', 'b', 'c', 'd'] * * @param {string|string[]} path **/ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "toPath", { enumerable: true, get: function() { return toPath; } }); function toPath(path) { if (Array.isArray(path)) return path; let openBrackets = path.split("[").length - 1; let closedBrackets = path.split("]").length - 1; if (openBrackets !== closedBrackets) { throw new Error(`Path is invalid. Has unbalanced brackets: ${path}`); } return path.split(/\.(?![^\[]*\])|[\[\]]/g).filter(Boolean); }