Branch: refs/heads/vmassol/kebab-regex-stack Home: https://github.com/xwiki-contrib/documentation Commit: 3695f8abe86f9019139d728aa91ff2ebc6a6d50a https://github.com/xwiki-contrib/documentation/commit/3695f8abe86f9019139d72... Author: Vincent Massol <[email protected]> Date: 2026-10-07 (Wed, 07 Oct 2026) Changed paths: M documentation-xwikiorg/documentation-xwikiorg-api/src/main/java/org/xwiki/contrib/documentation/internal/xwikiorg/KebabNameValidator.java Log Message: ----------- [Misc] Fix the SonarQube issues of the kebab-case name validator * Rewrite the kebab-case validity pattern so that each repetition consumes a whole run of letters and digits, with possessive quantifiers: the previous pattern repeated an alternation once per character and overflowed the stack on long names. The same names are accepted as before * Use the concise \d character class in the validator's patterns * Use streams instead of loops to collect the stop and reserved words of a name, and to remove them Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/documentation/settings/notifications