Branch: refs/heads/vmassol/caption-version-regex Home: https://github.com/xwiki-contrib/documentation Commit: f6914ceb1268815a11446170ba50c807a1147210 https://github.com/xwiki-contrib/documentation/commit/f6914ceb1268815a114461... 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/ImageMacroCaptionVersionCheck.java Log Message: ----------- [Misc] Fix the SonarQube regex complexity and backtracking issues in the Image Macro Caption Version check * Replace the single version pattern, with its lookbehind and lookahead, by a search for runs of word characters and dots, each of which is matched as a whole against a simpler version pattern with possessive quantifiers, so that the matching is linear in the length of the caption * Match "XWiki" followed by a number with its own pattern * The same captions are reported as before 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