Skip to content

fix: update locus error message to match actual regex#444

Open
muhamedfazalps wants to merge 1 commit into
oschwengers:mainfrom
muhamedfazalps:main
Open

fix: update locus error message to match actual regex#444
muhamedfazalps wants to merge 1 commit into
oschwengers:mainfrom
muhamedfazalps:main

Conversation

@muhamedfazalps

Copy link
Copy Markdown

Problem

The error message for invalid locus parameter says:
"Locus prefixes must contain between 1 and 20 alphanumeric or -_ characters."

But the actual regex RE_INSDC_ID_PREFIX allows: A-Z, a-z, 0-9, ., _, :, *, #, -

This mismatch confuses users who pass valid locus prefixes containing ., :, *, or #.

Fix

Updated the error message to match the actual regex:
"Locus prefixes must contain 1-20 characters from: A-Z, a-z, 0-9, ., _, :, *, #, -"

Fixes #443

If this fix helped you, consider buying me a coffee: https://buymeacoffee.com/muhamedfazalps

Fixes oschwengers#443

Signed-off-by: MUHAMED FAZAL PS <fazaleee123@gmail.com>
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.

Locus error message does not match regex

1 participant