mirror of
https://github.com/jlengrand/jreleaser.git
synced 2026-03-10 08:31:24 +00:00
[changelog] Escape regex chars. Relates to #213
This commit is contained in:
@@ -614,7 +614,7 @@ public class StringUtils {
|
||||
if (!str.startsWith("^")) {
|
||||
b.append(".*");
|
||||
}
|
||||
b.append(str);
|
||||
b.append(escapeRegexChars(str));
|
||||
if (!str.endsWith("$")) {
|
||||
b.append(".*");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user