Skip to content

Commit 9d76c8c

Browse files
committed
Use string util replace instead of replaceAll
1 parent 36eac3d commit 9d76c8c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/com/amashchenko/maven/plugin/gitflow/AbstractGitFlowMojo.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -573,10 +573,7 @@ protected String gitFindLastTag() throws MojoFailureException, CommandLineExcept
573573
* @return String without quotes.
574574
*/
575575
private String removeQuotes(String str) {
576-
if (str != null && !str.isEmpty()) {
577-
str = str.replaceAll("\"", "");
578-
}
579-
return str;
576+
return StringUtils.replace(str, "\"", "");
580577
}
581578

582579
/**

0 commit comments

Comments
 (0)