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

Refactor interim value validation #133

Merged
merged 2 commits into from
Feb 24, 2024
Merged

Refactor interim value validation #133

merged 2 commits into from
Feb 24, 2024

Conversation

happy5214
Copy link
Member

This PR revamps the interim value validation regex from a whitelist of characters to a blacklist of special and illegal characters. Realizing these are general syntax rules throughout the string, the test was moved to the ParsedHed3Tag construction call chain.

Tabs are now substituted with spaces, similarly to the existing behavior with ASCII NUL characters.

@happy5214 happy5214 added tests Issues related to testcases hed 3 HED 3-specific issues validation Tag validation issues parsing String parsing labels Feb 22, 2024
@happy5214 happy5214 added this to the 3.14.0 milestone Feb 22, 2024
@happy5214 happy5214 requested a review from VisLab February 22, 2024 22:59
@happy5214 happy5214 self-assigned this Feb 22, 2024
@happy5214 happy5214 merged commit 65ebfdb into master Feb 24, 2024
6 of 7 checks passed
@happy5214 happy5214 deleted the value-blacklist branch February 24, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hed 3 HED 3-specific issues parsing String parsing tests Issues related to testcases validation Tag validation issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant