From 790c372fb6afebf69df98404cd092e09c5fd5c29 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 8 Nov 2013 13:41:43 +0100 Subject: [PATCH] Use / instead of ! for regex delimiter to prevent syntax collor errors in older vim --- root/etc/e-smith/events/actions/generate-email-sign | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/e-smith/events/actions/generate-email-sign b/root/etc/e-smith/events/actions/generate-email-sign index a5ea1ec..7c92e36 100644 --- a/root/etc/e-smith/events/actions/generate-email-sign +++ b/root/etc/e-smith/events/actions/generate-email-sign @@ -96,8 +96,8 @@ foreach my $user (@users){ my $street = $user->prop('Street') || ''; my $city = $user->prop('City') || ''; my $url = $user->prop('Url') || ''; - $url =~ s!^https?://!!; - $url =~ s!/$!!; + $url =~ s/^https?:\/\///; + $url =~ s/\/$//; my $template = $user->prop('SignatureTemplate') || "email"; my $addr = "$street $postalcode $city";