purgetss 6.2.13 → 6.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -2543,6 +2543,8 @@ function purgeTailwind(uniqueClasses) {
2543
2543
  //! In other words, we need to validate the color value, before we can alter its opacity.
2544
2544
  let defaultHexValue = (classProperties.includes('from')) ? classProperties.match(/\#[0-9a-f]{6}/g)[1] : classProperties.match(/\#[0-9a-f]{6}/i)[0];
2545
2545
  let classWithoutDecimalOpacity = `${classProperties.replace(new RegExp(defaultHexValue.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'g'), `#${opacityValue.transparency}${defaultHexValue.substring(1)}`)}`;
2546
+ // Special case: #000000
2547
+ if (classProperties.includes('from') && defaultHexValue == '#000000') classWithoutDecimalOpacity = classWithoutDecimalOpacity.replace('00000000', '000000');
2546
2548
 
2547
2549
  let defaultTextValue = classProperties.match(/'[^']*'/i)[0];
2548
2550
  defaultTextValue = defaultTextValue.substring(1, defaultTextValue.length);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purgetss",
3
- "version": "6.2.13",
3
+ "version": "6.2.14",
4
4
  "description": "An extension for Titanium SDK that contains a set of Tailwind-like classes to easily and quickly create beautifully designed mobile apps.",
5
5
  "main": "index.js",
6
6
  "bin": {