From 7f749c770b4c4ea9e99efecb35e03d0c6e46d3fb Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 17 Feb 2013 23:37:45 +0100 Subject: [PATCH] detect comments with no whitespace after // --- data/gen-common.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/gen-common.pm b/data/gen-common.pm index 38691fb..60d73e8 100644 --- a/data/gen-common.pm +++ b/data/gen-common.pm @@ -22,7 +22,7 @@ $prefix eq 'ctl_' and $ctl = 1; sub get_json() { local $/; my $json = <>; - $json =~ s/^\s*\/\/ .*$//mg; + $json =~ s/^\s*\/\/.*$//mg; return decode_json($json); } -- 2.25.1