@undp/create-app 0.2.13 → 0.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.
@@ -67,9 +67,9 @@ export default defineConfig({
67
67
  const containerRules = [];
68
68
 
69
69
  function extractMinWidth(params) {
70
- let match = params.match(/min-width:\s*([\d.]+)(px|rem)/);
70
+ let match = params.match(/min-width:\\s*([\\d.]+)(px|rem)/);
71
71
  if (!match) {
72
- match = params.match(/width\s*>=\s*([\d.]+)(px|rem)/);
72
+ match = params.match(/width\\s*>=\\s*([\\d.]+)(px|rem)/);
73
73
  }
74
74
  if (!match) return null;
75
75
 
@@ -116,7 +116,10 @@ export default defineConfig({
116
116
  const containerRules = [];
117
117
 
118
118
  function extractMinWidth(params) {
119
- const match = params.match(/min-width:\s*([\d.]+)(px|rem)/);
119
+ let match = params.match(/min-width:\\s*([\\d.]+)(px|rem)/);
120
+ if (!match) {
121
+ match = params.match(/width\\s*>=\\s*([\\d.]+)(px|rem)/);
122
+ }
120
123
  if (!match) return null;
121
124
 
122
125
  const value = parseFloat(match[1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@undp/create-app",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "UNDP's project scaffolding tool",
5
5
  "bin": {
6
6
  "create-undp-app": "./bin/index.js"