Skip to content

Commit c1de396

Browse files
Fix UnicodeText test
1 parent 27c76d5 commit c1de396

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/ICSharpCode.SharpZipLib.Tests/Zip/ZipTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Runtime.Serialization.Formatters.Binary;
55
using System.Security;
66
using System.Text;
7+
using System.Text.RegularExpressions;
78
using System.Threading;
89
using ICSharpCode.SharpZipLib.Checksum;
910
using ICSharpCode.SharpZipLib.Core;
@@ -2721,7 +2722,7 @@ public void UnicodeText()
27212722

27222723
try {
27232724
var target = new MemoryStream();
2724-
zippy.CreateZip(target, tempFilePath, false, tempName1, null);
2725+
zippy.CreateZip(target, tempFilePath, false, Regex.Escape(tempName1), null);
27252726

27262727
var archive = new MemoryStream(target.ToArray());
27272728

0 commit comments

Comments
 (0)