Skip to content

refactor: Enforce arrayRef regex & Handling and XML Spacing Rules#3900

Open
arng40 wants to merge 28 commits intodevelopfrom
bugfix/dudes/rtt-sourceflux
Open

refactor: Enforce arrayRef regex & Handling and XML Spacing Rules#3900
arng40 wants to merge 28 commits intodevelopfrom
bugfix/dudes/rtt-sourceflux

Conversation

@arng40
Copy link
Contributor

@arng40 arng40 commented Nov 4, 2025

To reference an array of groups aka groupNameRefArray, we ensure we have to write attribute="{*}" .
We cannot longer write for example : attribute="*"

Also allow to have spaces spaces before and after a value in an attribute :

someAttributes="{ 0.0, 1.0, 10.0, 100.0 }"
coordinates="   { 0.0, 1.0, 10.0, 100.0 }"

@arng40 arng40 self-assigned this Nov 4, 2025
@arng40 arng40 changed the title Enforce arrayRef regex Enforce arrayRef regex & loosens xml spacing rules Nov 4, 2025
@arng40 arng40 changed the title Enforce arrayRef regex & loosens xml spacing rules refactor: Enforce arrayRef regex & loosens xml spacing rules Nov 4, 2025
@arng40 arng40 changed the title refactor: Enforce arrayRef regex & loosens xml spacing rules refactor: Enforce arrayRef regex & Handling and XML Spacing Rules Nov 5, 2025
@arng40 arng40 added ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI labels Nov 12, 2025
Copy link
Contributor

@MelReyCG MelReyCG left a comment

Choose a reason for hiding this comment

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

need a few more work on unit tests

Copy link
Contributor

@MelReyCG MelReyCG left a comment

Choose a reason for hiding this comment

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

please address last comment

Comment on lines 170 to +171
string_view const strDesc = "Input value must be a string that cannot be empty, contain any whitespaces nor the characters , { }";
string_view const strRegex = "[^,\\{\\}\\s]+\\s*";
string_view const strRegex = "\\s*[^,\\{\\}\\s]+\\s*";
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this now out of sync with the message above? Do we now allow leading spaces?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The test now authorize to have spaces to write smth like :

someAttributes="{ 0.0, 1.0, 10.0, 100.0 }"
coordinates="   { 0.0, 1.0, 10.0, 100.0 }"

Copy link
Contributor

Choose a reason for hiding this comment

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

@dkachuma It is a proposal indeed. Do not hesitate to tell if you see any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: run CUDA builds Allows to triggers (costly) CUDA jobs ci: run integrated tests Allows to run the integrated tests in GEOS CI flag: ready for review type: cleanup / refactor Non-functional change (NFC)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants