From f6b44866585a7254981e28eff99f385c34391c9f Mon Sep 17 00:00:00 2001 From: Tim te Beek Date: Mon, 19 Aug 2024 12:42:17 +0200 Subject: [PATCH] Only match exactly `packages.config` in XmlParser - https://github.com/openrewrite/rewrite/pull/4408 --- rewrite-xml/src/main/java/org/openrewrite/xml/XmlParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rewrite-xml/src/main/java/org/openrewrite/xml/XmlParser.java b/rewrite-xml/src/main/java/org/openrewrite/xml/XmlParser.java index 70a3d476db7..fd107e5c7f9 100755 --- a/rewrite-xml/src/main/java/org/openrewrite/xml/XmlParser.java +++ b/rewrite-xml/src/main/java/org/openrewrite/xml/XmlParser.java @@ -99,7 +99,7 @@ public boolean accept(Path path) { p.endsWith(".pst") || // C# project files p.endsWith(".csproj") || - p.equals("packages.config"); + path.endsWith("packages.config"); } @Override