Skip to content

Commit

Permalink
Merge pull request #165 from jeromecornet/fix_symbols_regexp
Browse files Browse the repository at this point in the history
Make ticker symbol regexp more tolerant
  • Loading branch information
afadil authored Nov 13, 2024
2 parents 87ca646 + 872c755 commit 06ad97c
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 06ad97c

Please sign in to comment.