From 9301d8d07ee770363c4fa3771e417e856b300433 Mon Sep 17 00:00:00 2001 From: tanshu Date: Thu, 17 May 2018 16:09:53 +0530 Subject: [PATCH] Fix: Didn't take into account the direction of slashes for Windows. --- Tanshu.Accounts.Print/Thermal.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tanshu.Accounts.Print/Thermal.cs b/Tanshu.Accounts.Print/Thermal.cs index 79d4ff4..64f5e12 100644 --- a/Tanshu.Accounts.Print/Thermal.cs +++ b/Tanshu.Accounts.Print/Thermal.cs @@ -67,11 +67,11 @@ namespace Tanshu.Accounts.Print private static PlatformPrinter GetPrinter(string location) { - if (location.StartsWith("smb://")) + if (location.StartsWith("smb:")) return new PrinterWindows(location); - else if (location.StartsWith("cups://")) + else if (location.StartsWith("cups:")) return new PrinterLinux(location); - else if (location.StartsWith("pdl://")) + else if (location.StartsWith("pdl:")) return new PrinterSocket(location); throw new NotImplementedException(); }