create-plasmic-app 0.0.59 → 0.0.60
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/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -210,7 +210,7 @@ function run() {
|
|
|
210
210
|
What is the URL of your project?`,
|
|
211
211
|
}, firstPrompt);
|
|
212
212
|
firstPrompt = false; // avoid infinite loop with an invalid CLI answer
|
|
213
|
-
const matchUrl = rawProjectId.match(/studio\.plasmic\.app\/projects\/([a-z0-9]{5,})
|
|
213
|
+
const matchUrl = rawProjectId.match(/studio\.plasmic\.app\/projects\/([a-z0-9]{5,})(\/|$)/i);
|
|
214
214
|
if (matchUrl) {
|
|
215
215
|
projectId = matchUrl[1];
|
|
216
216
|
continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-plasmic-app",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"description": "Create Plasmic-powered React apps",
|
|
5
5
|
"main": "./dist/lib.js",
|
|
6
6
|
"types": "./dist/lib.d.ts",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"validate-npm-package-name": "^3.0.0",
|
|
55
55
|
"yargs": "^16.2.0"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "f31e93cf3bf477d955e1103432684811cdd259a9"
|
|
58
58
|
}
|
package/src/index.ts
CHANGED
|
@@ -200,7 +200,7 @@ What is the URL of your project?`,
|
|
|
200
200
|
firstPrompt = false; // avoid infinite loop with an invalid CLI answer
|
|
201
201
|
|
|
202
202
|
const matchUrl = rawProjectId.match(
|
|
203
|
-
/studio\.plasmic\.app\/projects\/([a-z0-9]{5,})
|
|
203
|
+
/studio\.plasmic\.app\/projects\/([a-z0-9]{5,})(\/|$)/i
|
|
204
204
|
);
|
|
205
205
|
if (matchUrl) {
|
|
206
206
|
projectId = matchUrl[1];
|