镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Fix trailing wildcards in customization paths - #209

Open
PHJ2000 wants to merge 1 commit into
skyscreamer:masterfrom
PHJ2000:fix-204-trailing-wildcards
Open

PHJ2000 wants to merge 1 commit into
skyscreamer:masterfrom
PHJ2000:fix-204-trailing-wildcards

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 15, 2026

Copy link
Copy Markdown

Fixes #204

Customization("foo.*", ...) does not match foo.bar because splitting the pattern drops the trailing empty part. Retain that part for a final * or **, passing the flag only to the final fragment at each level.

This preserves the existing foo.*** workaround mentioned in the issue, including triple wildcards before another property. Regression tests cover trailing wildcards, wildcard-only paths, nested custom comparisons, and the existing triple-wildcard behavior.

Validation: mvn test on JDK 17 (161 tests passed), plus the same Java 8-targeted test classes run with JUnitCore on JDK 8 (161 passed).

This branch has not been deployed

No deployments
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.

Customizations don't match paths with trailing wildcards

1 participant