@supernova-studio/client 0.58.23 → 0.58.24
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/utils/figma.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -7172,13 +7172,13 @@ var FigmaUtils = {
|
|
|
7172
7172
|
if (!url.hostname.endsWith("figma.com"))
|
|
7173
7173
|
return null;
|
|
7174
7174
|
const pathSegments = url.pathname.split("/");
|
|
7175
|
-
if (pathSegments[
|
|
7175
|
+
if (pathSegments[1] !== "design" && pathSegments[1] !== "file")
|
|
7176
7176
|
return null;
|
|
7177
|
-
const fileId = pathSegments[
|
|
7177
|
+
const fileId = pathSegments[2];
|
|
7178
7178
|
if (!fileId || !fileId.match(figmaFileIdRegex))
|
|
7179
7179
|
return null;
|
|
7180
7180
|
let fileName = null;
|
|
7181
|
-
const rawFileName = pathSegments[
|
|
7181
|
+
const rawFileName = pathSegments[3];
|
|
7182
7182
|
if (rawFileName) {
|
|
7183
7183
|
fileName = rawFileName.replaceAll("-", " ");
|
|
7184
7184
|
}
|