Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow new line in text validation #1156

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Allow new line in text validation #1156

merged 1 commit into from
Sep 25, 2024

Conversation

zhx828
Copy link
Member

@zhx828 zhx828 commented Sep 24, 2024

This fixes oncokb/oncokb#3790

@zhx828 zhx828 added the fix Fix tag for release label Sep 24, 2024
@@ -3,6 +3,6 @@
// (PMID: 11753428, 16007150, 21467160)
// (NCT1234567)
export const REF_CAPTURE = /(\(\s*(?:PMID|NCT|Abstract):?.*?(?:\([^()]*\).*?)*\))/i;
export const VALID_LATIN_TEXT = /^[\p{Script=Latin}\p{M}\p{N}\p{Z}\p{P}\p{Sm}\p{Sc}\p{Sk}]+$/u;
export const VALID_LATIN_TEXT = /^[\p{Script=Latin}\p{M}\p{N}\p{Z}\p{P}\p{Sm}\p{Sc}\p{Sk}\r\n]+$/u;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think you should add a unit test for this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do have tests, let me update them!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jfkonecn updated

@zhx828 zhx828 merged commit c32b9ad into oncokb:master Sep 25, 2024
6 checks passed
@zhx828 zhx828 deleted the hotfix branch September 25, 2024 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix tag for release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support new line character in the Use Case/ API Access Justification
2 participants