Skip to content

Commit

Permalink
Make ticker symbol regexp more tolerant
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromecornet committed Nov 12, 2024
1 parent 46346bd commit 872c755
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/activity/import/utils/csvValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const CASH_ACTIVITY_TYPES = new Set([
]);

// Add a simple regex for ticker validation
const tickerRegex = /^(\$CASH-[A-Z]{3}|[A-Z0-9]{1,5}([.-][A-Z0-9]+)?)$/;
const tickerRegex = /^(\$CASH-[A-Z]{3}|[A-Z0-9]{1,10}([\.-][A-Z0-9]+){0,2})$/;

export const activityImportValidationSchema = z
.object({
Expand Down

0 comments on commit 872c755

Please sign in to comment.