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.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. 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-]+(?:\[[^\]]+\])?|\w+/g);
5727
+ const classes = classNames.match(/[\w-]+\[[^\]]+\]|[\w-]+\.\d+|[\w-]+/g);
5728
5728
 
5729
5729
  let cssResult = classes.map((className) => {
5730
5730
  if (cssObject[className]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tailwind-to-style",
3
- "version": "1.1.3",
3
+ "version": "1.1.4",
4
4
  "description": "Convert tailwind classes to inline style",
5
5
  "main": "index.js",
6
6
  "scripts": {