Skip to content

Commit 2caf18d

Browse files
committed
Better matching
1 parent c290ea4 commit 2caf18d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

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

0 commit comments

Comments
 (0)