Skip to content

Commit c290ea4

Browse files
committed
Better matching
1 parent 6e9bae9 commit c290ea4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/resources/META-INF/rewrite/jakarta-faces-4.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ recipeList:
199199
- org.openrewrite.xml.ChangeTagAttribute:
200200
attributeName: xsi:schemaLocation
201201
elementName: web-app
202-
oldValue: (?<prefix>https://jakarta\.ee/xml/ns/jakartaee\s+https://jakarta\.ee/xml/ns/jakartaee/web-app_)5_\d+(?<extension>\.xsd)
203-
newValue: ${prefix}6_0${extension}
202+
oldValue: (?<prefix>[\S\s]*https://jakarta\.ee/xml/ns/jakartaee/web-app_)5_\d+(?<suffix>\.xsd[\S\s]*)
203+
newValue: ${prefix}6_0${suffix}
204204
regex: true
205205
---
206206
type: specs.openrewrite.org/v1beta/recipe

0 commit comments

Comments
 (0)