Skip to content

Conversation

@timtebeek
Copy link
Member

@timtebeek timtebeek commented Jan 20, 2026

Summary

Test plan

  • Added migrateMultilineSchemaLocation test case that verifies the recipe handles attributes with line breaks
  • All existing tests continue to pass

🤖 Generated with Claude Code

The regex pattern for matching xsi:schemaLocation attributes was failing
when the attribute value contained line breaks, as `.` doesn't match
newlines by default. Added `(?s)` flag to enable dotall mode.

Fixes #970

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Jan 20, 2026
@timtebeek timtebeek added bug Something isn't working recipe Recipe requested labels Jan 20, 2026
@timtebeek timtebeek moved this from In Progress to Ready to Review in OpenRewrite Jan 20, 2026
@timtebeek timtebeek merged commit 424b525 into main Jan 20, 2026
2 checks passed
@timtebeek timtebeek deleted the fix-multiline-schema-location-regex branch January 20, 2026 16:37
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working recipe Recipe requested

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

JavaxWebXmlToJakartaWebXml does not properly update if schemaLocation contains a linebreak

2 participants