fix(Storybook): correct parsing of figma urls with in node-id

This commit is contained in:
Michał Cieślak 2023-03-28 14:29:55 +02:00 committed by Michał
parent 2dc9c950d9
commit 1c80cbb3df
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ QtObject {
const fileRegex = /www\.figma\.com\/file\/([a-zA-Z0-9]+)/
const fileMatch = link.match(fileRegex)
const nodeIdRegex = /node-id=([0-9A-Za-z%]+)/
const nodeIdRegex = /node-id=([0-9A-Za-z%-]+)/
const nodeIdMatch = link.match(nodeIdRegex)
return {