MCPcopy Create free account
hub / github.com/crowdin/crowdin-cli / normalizePath

Method normalizePath

src/main/java/com/crowdin/cli/utils/Utils.java:99–101  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

97 }
98
99 public static String normalizePath(String path) {
100 return (path != null) ? path.replaceAll("[\\\\/]+", Utils.PATH_SEPARATOR_REGEX) : null;
101 }
102
103 public static String noSepAtStart(String path) {
104 return (path != null) ? path.replaceAll("^[\\\\/]+", "") : null;

Calls

no outgoing calls