summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/start-memcached2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/start-memcached b/scripts/start-memcached
index 8b64a20..164c9bd 100755
--- a/scripts/start-memcached
+++ b/scripts/start-memcached
@@ -62,7 +62,7 @@ if(open $etchandle, $etcfile)
foreach my $line (<$etchandle>)
{
$line ||= "";
- $line =~ s/\#.*//g;
+ $line =~ s/(?<!\\)\#[^\#]*//g;
$line =~ s/\s+$//g;
$line =~ s/^\s+//g;
next unless $line;