Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CleanZipPath()

static string ReLogic.Content.Sources.ZipContentSource.CleanZipPath ( string path)
inlinestaticprivate

Definition at line 86 of file ZipContentSource.cs.

87 {
88 path = path.Replace('\\', '/');
89 path = Regex.Replace(path, "^[./]+", "");
90 if (path.Length != 0 && !path.EndsWith("/"))
91 {
92 path += "/";
93 }
94 return path;
95 }
static string Replace(string input, string pattern, string replacement)
Definition Regex.cs:514

References System.Text.RegularExpressions.Regex.Replace().

Referenced by ReLogic.Content.Sources.ZipContentSource.ZipContentSource(), and ReLogic.Content.Sources.ZipContentSource.ZipContentSource().