Skip to content

Commit

Permalink
fix(transfer): Fix rename index problems. close #9
Browse files Browse the repository at this point in the history
  • Loading branch information
CarmJos committed Feb 7, 2024
1 parent 725f354 commit 2160ae8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</properties>
<groupId>cc.carm.app</groupId>
<artifactId>easyupdater</artifactId>
<version>1.0.0</version>
<version>1.0.1</version>
<packaging>jar</packaging>

<name>EasyUpdater</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public File parsePath(String name, File[] files, List<String> matches) {

public String rename(String source, List<String> list) {
for (int var1 = 1; var1 <= list.size(); var1++) {
source = source.replaceFirst("\\$" + var1, list.get(var1));
source = source.replaceFirst("\\$" + var1, list.get(var1 - 1));
}
return source;
}
Expand Down

0 comments on commit 2160ae8

Please sign in to comment.