tailwind-to-style 1.1.3 → 1.1.4
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.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5724,7 +5724,7 @@ function tws(classNames, convertToJson) {
|
|
|
5724
5724
|
const cssString = generateTailwindCssString().replace(/\s\s+/g, " ");
|
|
5725
5725
|
const cssObject = convertCssToObject(cssString);
|
|
5726
5726
|
|
|
5727
|
-
const classes = classNames.match(/[\w-]
|
|
5727
|
+
const classes = classNames.match(/[\w-]+\[[^\]]+\]|[\w-]+\.\d+|[\w-]+/g);
|
|
5728
5728
|
|
|
5729
5729
|
let cssResult = classes.map((className) => {
|
|
5730
5730
|
if (cssObject[className]) {
|