From 327e9fb6c50f3fee0bd4a727acf8e2505d5f319a Mon Sep 17 00:00:00 2001 From: Mathias Kende Date: Thu, 11 Apr 2024 12:49:25 +0200 Subject: [PATCH] Update Provider.pm Correct the path splitting on Win32 --- lib/Template/Provider.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Template/Provider.pm b/lib/Template/Provider.pm index f2b4df76..3fe798b1 100644 --- a/lib/Template/Provider.pm +++ b/lib/Template/Provider.pm @@ -335,7 +335,7 @@ sub _init { # tweak delim to ignore C:/ unless (defined $dlim) { - $dlim = MSWin32 ? ':(?!\\/)' : ':'; + $dlim = MSWin32 ? qr/:(?!\\|\/)/ : qr/:/; } # coerce INCLUDE_PATH to an array ref, if not already so