From 250d289d0804298233c7e5b12df923d88f3062be Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Fri, 20 Aug 2021 14:27:04 +0200 Subject: [PATCH] Filesystem/File: Allow doublecolon in paths --- Modules.Filesystem/File.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules.Filesystem/File.vb b/Modules.Filesystem/File.vb index 3a2ad940..f0409087 100644 --- a/Modules.Filesystem/File.vb +++ b/Modules.Filesystem/File.vb @@ -31,7 +31,7 @@ Public Class File Private ReadOnly _invalidPathChars As String Private Const REGEX_CLEAN_FILENAME As String = "[\\/:""<>|\b\0\r\n\t]" - Private Const REGEX_CLEAN_PATH As String = "[:""<>|\b\0\r\n\t]" + Private Const REGEX_CLEAN_PATH As String = "[""<>|\b\0\r\n\t]" ' The limit enforced by windows for filenpaths is 260, ' so we use a slightly smaller number to have some Error margin.