Skip to content

feat: String format expansion#44

Merged
thced merged 18 commits into
masterfrom
feat/string-format-expansion
May 11, 2026
Merged

feat: String format expansion#44
thced merged 18 commits into
masterfrom
feat/string-format-expansion

Conversation

@thced

@thced thced commented May 11, 2026

Copy link
Copy Markdown
Contributor

No description provided.

thced added 18 commits May 8, 2026 17:08
Add /format/email and /format/byte operations to openapi.json and
openapi.yaml fixtures. Register inline handlers in OpenApiServerIT
and add four IT methods covering valid/invalid email and base64 inputs.
Replace nested capturing groups with non-capturing groups and use a
possessive quantifier on the outer repetition. This eliminates the
recursive-backtracking path Java's regex engine would otherwise
follow, addressing the SonarQube finding.
SonarQube flagged the IPv4 and IPv6 patterns as exceeding the allowed
regex complexity (21 and 99 respectively, limit is 20). Parsing
syntactically by splitting on the separator and validating each
segment is both lower-complexity and easier to read.
Switch to possessive quantifiers and exclude '.' from the domain
first-label class so the engine cannot backtrack across the
literal dot. Addresses SonarQube S5852.
@sonarqubecloud

Copy link
Copy Markdown

@thced thced merged commit e6e5002 into master May 11, 2026
4 checks passed
@thced thced deleted the feat/string-format-expansion branch May 11, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant