Skip to content

Export and AI Improvements, code reorganization#46

Draft
royanger wants to merge 7 commits intomainfrom
roy/reorganize-code-add-more-exports
Draft

Export and AI Improvements, code reorganization#46
royanger wants to merge 7 commits intomainfrom
roy/reorganize-code-add-more-exports

Conversation

@royanger
Copy link
Member

No description provided.

@royanger royanger changed the title Roy/reorganize code add more exports Export and AI Improvements, code reorganization Feb 20, 2026
Comment on lines +326 to +337
return errorMessage.replace(arrayPattern, (_match, fields: string) => {
// Split by spaces and quotes, filter out empty strings
const fieldNames = fields
.split(/["'\s]+/)
.filter((f: string) => f.trim().length > 0);

// Sort field names alphabetically
fieldNames.sort();

// Reconstruct the array notation
return `[${fieldNames.map((f: string) => `"${f}"`).join(' ')}]`;
});

Check failure

Code scanning / CodeQL

Polynomial regular expression used on uncontrolled data High

This
regular expression
that depends on
library input
may run slow on strings starting with '[' and with many repetitions of '[\'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant