fix: regex?

This commit is contained in:
hypercross 2026-03-06 17:51:22 +08:00
parent ae9c3aa59b
commit bf18808aa8
1 changed files with 2 additions and 2 deletions

View File

@ -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
});
}