/
opt
/
canhelp
/
node_modules
/
tailwindcss
/
lib
/
util
/
/opt/canhelp/node_modules/tailwindcss/lib/util
mkdir
upload
Name
Size
Mode
Actions
applyImportantSelector.js
1381
0644
edit
dl
rm
bigSign.js
289
0644
edit
dl
rm
buildMediaQuery.js
780
0644
edit
dl
rm
cloneDeep.js
544
0644
edit
dl
rm
cloneNodes.js
1915
0644
edit
dl
rm
color.js
3912
0644
edit
dl
rm
colorNames.js
9243
0644
edit
dl
rm
configurePlugins.js
685
0644
edit
dl
rm
createPlugin.js
961
0644
edit
dl
rm
createUtilityPlugin.js
1930
0644
edit
dl
rm
dataTypes.js
9034
0644
edit
dl
rm
defaults.js
1036
0644
edit
dl
rm
escapeClassName.js
958
0644
edit
dl
rm
escapeCommas.js
292
0644
edit
dl
rm
flattenColorPalette.js
663
0644
edit
dl
rm
formatVariantSelector.js
11612
0644
edit
dl
rm
getAllConfigs.js
1713
0644
edit
dl
rm
hashConfig.js
518
0644
edit
dl
rm
isKeyframeRule.js
340
0644
edit
dl
rm
isPlainObject.js
470
0644
edit
dl
rm
isSyntacticallyValidPropertyValue.js
2072
0644
edit
dl
rm
log.js
1606
0644
edit
dl
rm
math-operators.js
5214
0644
edit
dl
rm
nameClass.js
1316
0644
edit
dl
rm
negateValue.js
1053
0644
edit
dl
rm
normalizeConfig.js
14979
0644
edit
dl
rm
normalizeScreens.js
5602
0644
edit
dl
rm
parseAnimationValue.js
2912
0644
edit
dl
rm
parseBoxShadowValue.js
2626
0644
edit
dl
rm
parseDependency.js
1182
0644
edit
dl
rm
parseGlob.js
862
0644
edit
dl
rm
parseObjectStyles.js
1025
0644
edit
dl
rm
pluginUtils.js
11161
0644
edit
dl
rm
prefixSelector.js
1408
0644
edit
dl
rm
pseudoElements.js
6985
0644
edit
dl
rm
removeAlphaVariables.js
1073
0644
edit
dl
rm
resolveConfig.js
9347
0644
edit
dl
rm
resolveConfigPath.js
2289
0644
edit
dl
rm
responsive.js
672
0644
edit
dl
rm
splitAtTopLevelOnly.js
1805
0644
edit
dl
rm
tap.js
266
0644
edit
dl
rm
toColorValue.js
333
0644
edit
dl
rm
toPath.js
951
0644
edit
dl
rm
transformThemeValue.js
2277
0644
edit
dl
rm
validateConfig.js
1359
0644
edit
dl
rm
validateFormalSyntax.js
998
0644
edit
dl
rm
withAlphaVariable.js
2056
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/tailwindcss/lib/util/isSyntacticallyValidPropertyValue.js
(2072B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, // Arbitrary values must contain balanced brackets (), [] and {}. Escaped // values don't count, and brackets inside quotes also don't count. // // E.g.: w-[this-is]w-[weird-and-invalid] // E.g.: w-[this-is\\]w-\\[weird-but-valid] // E.g.: content-['this-is-also-valid]-weirdly-enough'] "default", { enumerable: true, get: function() { return isSyntacticallyValidPropertyValue; } }); let matchingBrackets = new Map([ [ "{", "}" ], [ "[", "]" ], [ "(", ")" ] ]); let inverseMatchingBrackets = new Map(Array.from(matchingBrackets.entries()).map(([k, v])=>[ v, k ])); let quotes = new Set([ '"', "'", "`" ]); function isSyntacticallyValidPropertyValue(value) { let stack = []; let inQuotes = false; for(let i = 0; i < value.length; i++){ let char = value[i]; if (char === ":" && !inQuotes && stack.length === 0) { return false; } // Non-escaped quotes allow us to "allow" anything in between if (quotes.has(char) && value[i - 1] !== "\\") { inQuotes = !inQuotes; } if (inQuotes) continue; if (value[i - 1] === "\\") continue; // Escaped if (matchingBrackets.has(char)) { stack.push(char); } else if (inverseMatchingBrackets.has(char)) { let inverse = inverseMatchingBrackets.get(char); // Nothing to pop from, therefore it is unbalanced if (stack.length <= 0) { return false; } // Popped value must match the inverse value, otherwise it is unbalanced if (stack.pop() !== inverse) { return false; } } } // If there is still something on the stack, it is also unbalanced if (stack.length > 0) { return false; } // All good, totally balanced! return true; }
Save
cmd:
run