ursaj commented on code in PR #760:
URL: 
https://github.com/apache/maven-shade-plugin/pull/760#discussion_r3171333974


##########
src/main/java/org/apache/maven/plugins/shade/relocation/SimpleRelocator.java:
##########
@@ -34,7 +34,7 @@ public class SimpleRelocator implements Relocator {
     /**
      * Match dot, slash or space at end of string
      */
-    private static final Pattern RX_ENDS_WITH_DOT_SLASH_SPACE = 
Pattern.compile("[./ ]$");
+    private static final Pattern RX_ENDS_WITH_DOT_SLASH_SPACE = 
Pattern.compile("(\\.|/|[^<?:+\\-*/^|&] )$");

Review Comment:
   added comment. @kwin please check 
   
   without this change new tests would fail on the following declarations:
   <img width="1881" height="665" alt="image" 
src="https://github.com/user-attachments/assets/3fc62242-bb90-43dc-afa1-c91336477c2d";
 />



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to