From: Felix Fietkau Date: Sun, 17 Feb 2013 22:37:45 +0000 (+0100) Subject: detect comments with no whitespace after // X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuqmi.git;a=commitdiff_plain;h=7f749c770b4c4ea9e99efecb35e03d0c6e46d3fb detect comments with no whitespace after // --- 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); }