Language: Improve RemoveInvalidCharacters to remove double spaces and dots
This commit is contained in:
parent
2cf837cc92
commit
47065c19a3
@ -136,6 +136,10 @@ Public Class Utils
|
||||
' Remove Invalid filename characters
|
||||
oResult = Regex.Replace(oResult, InvalidChars.Paths, String.Empty)
|
||||
|
||||
' Remove Uneccessary characters
|
||||
oResult = Regex.Replace(oResult, "\s{2,}", " ")
|
||||
oResult = Regex.Replace(oResult, "\.{2,}", ".")
|
||||
|
||||
' Remove excess space chars
|
||||
oResult = oResult.Trim()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user