Skip to content

Commit

Permalink
should split path with a literal separator
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Jun 29, 2024
1 parent 2bb35da commit ed23e20
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.regex.Pattern;

/**
* The utility class for path in {@link Config}
Expand Down Expand Up @@ -59,7 +60,7 @@ static String join(String separator, String... path) {
* @return the split path
*/
static String[] split(String separator, String path) {
return path.split(separator);
return path.split(Pattern.quote(separator));
}

/**
Expand Down

0 comments on commit ed23e20

Please sign in to comment.