postcss-clampwind 0.0.10 → 0.0.11

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.
@@ -158,6 +158,7 @@ var extractMaxValue = (params) => {
158
158
  if (!params) return null;
159
159
  let match = params.match(/<\s*([^),\s]+)/);
160
160
  if (match) return match[1].trim();
161
+ if (params.match(/not\s+all\s+and\s*\(\s*max-width:/)) return null;
161
162
  match = params.match(/max-width:\s*([^),\s]+)/);
162
163
  if (match) return match[1].trim();
163
164
  match = params.match(/not\s+all\s+and\s*\(\s*min-width:\s*([^),\s]+)\s*\)/);
@@ -168,6 +169,7 @@ var extractMinValue = (params) => {
168
169
  if (!params) return null;
169
170
  let match = params.match(/>=?\s*([^),\s]+)/);
170
171
  if (match) return match[1].trim();
172
+ if (params.match(/not\s+all\s+and\s*\(\s*min-width:/)) return null;
171
173
  match = params.match(/min-width:\s*([^),\s]+)/);
172
174
  if (match) return match[1].trim();
173
175
  match = params.match(/not\s+all\s+and\s*\(\s*max-width:\s*([^),\s]+)\s*\)/);
@@ -133,6 +133,7 @@ var extractMaxValue = (params) => {
133
133
  if (!params) return null;
134
134
  let match = params.match(/<\s*([^),\s]+)/);
135
135
  if (match) return match[1].trim();
136
+ if (params.match(/not\s+all\s+and\s*\(\s*max-width:/)) return null;
136
137
  match = params.match(/max-width:\s*([^),\s]+)/);
137
138
  if (match) return match[1].trim();
138
139
  match = params.match(/not\s+all\s+and\s*\(\s*min-width:\s*([^),\s]+)\s*\)/);
@@ -143,6 +144,7 @@ var extractMinValue = (params) => {
143
144
  if (!params) return null;
144
145
  let match = params.match(/>=?\s*([^),\s]+)/);
145
146
  if (match) return match[1].trim();
147
+ if (params.match(/not\s+all\s+and\s*\(\s*min-width:/)) return null;
146
148
  match = params.match(/min-width:\s*([^),\s]+)/);
147
149
  if (match) return match[1].trim();
148
150
  match = params.match(/not\s+all\s+and\s*\(\s*max-width:\s*([^),\s]+)\s*\)/);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "postcss-clampwind",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "A PostCSS plugin to create fluid clamp values for any Tailwind CSS utility",
5
5
  "license": "Apache-2.0",
6
- "keywords": [
6
+ "keywords": [
7
7
  "clampwind",
8
8
  "postcss-plugin",
9
9
  "tailwindcss",
@@ -38,4 +38,4 @@
38
38
  "dev": "node scripts/build.js --watch",
39
39
  "build": "node scripts/build.js"
40
40
  }
41
- }
41
+ }