Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
hunghg255 committed Jul 6, 2023
1 parent 1fc732f commit 9aed4d3
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const hasNegative = (val: string): ['-' | '', string] => [
];
const getCustomVal = (val: string) => {
// FIGMA: color: var(--neutral-1, #2F2F2F)
if (val.startsWith('var') && val.includes(',')) return val.match(/#[0-9a-zA-Z]{3,6}/g);
if (val.startsWith('var') && val.includes(',')) return val?.[0] ?? val;

val = val.replace(/\s/g, '_');
for (let index = 1; index < val.length; index) {
Expand Down Expand Up @@ -466,7 +466,7 @@ const getFontSizeDefaultVal = (val: string) => {

const propertyMap: Map<
string,
Record<string, string> | ((val: strin) => string)
Record<string, string> | ((val: string) => string)
> = new Map<string, Record<string, string> | ((val: string) => string)>([
[
'align-content',
Expand Down

0 comments on commit 9aed4d3

Please sign in to comment.