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