fix: regex?
This commit is contained in:
@@ -20,8 +20,8 @@ export function parseLayers(layersStr: string): Layer[] {
|
|||||||
y1: parseInt(match[3]),
|
y1: parseInt(match[3]),
|
||||||
x2: parseInt(match[4]),
|
x2: parseInt(match[4]),
|
||||||
y2: parseInt(match[5]),
|
y2: parseInt(match[5]),
|
||||||
fontSize: match[7] ? parseFloat(match[7]) : undefined,
|
fontSize: match[6] ? parseFloat(match[6]) : undefined,
|
||||||
orientation: match[8] as 'n' | 's' | 'e' | 'w' | undefined
|
orientation: match[7] as 'n' | 's' | 'e' | 'w' | undefined
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user