@supernova-studio/client 0.58.22 → 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 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[0] !== "design" && pathSegments[0] !== "file")
7175
+ if (pathSegments[1] !== "design" && pathSegments[1] !== "file")
7176
7176
  return null;
7177
- const fileId = pathSegments[1];
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[2];
7181
+ const rawFileName = pathSegments[3];
7182
7182
  if (rawFileName) {
7183
7183
  fileName = rawFileName.replaceAll("-", " ");
7184
7184
  }