We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 723df87 commit c8baafdCopy full SHA for c8baafd
1 file changed
src/lib/cdl-parser.ts
@@ -150,8 +150,10 @@ export function parseCDL(cdl: string): ValidationResult {
150
return { valid: false, error: 'CDL expression too long (max 500 characters)' };
151
}
152
153
- // Split by modifier if present
154
- const [mainPart, modifier] = trimmed.split('|').map(s => s.trim());
+ // Split by modifier if present - first part is forms, rest are modifiers
+ const parts = trimmed.split('|').map(s => s.trim());
155
+ const mainPart = parts[0];
156
+ const modifier = parts.length > 1 ? parts.slice(1).join(' | ') : undefined;
157
158
// Parse system and point group: system[point_group]:forms
159
const systemMatch = mainPart.match(/^(\w+)\[([^\]]+)\]:(.+)$/);
0 commit comments