diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-02-17 23:37:45 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-02-17 23:37:45 +0100 |
commit | 7f749c770b4c4ea9e99efecb35e03d0c6e46d3fb (patch) | |
tree | 3367ac8e94fbc2efef8c025cb7ac2f9d5196f47c | |
parent | 499a5ce3523e5ecf6ecc3e4dd879c9163a9d0ef1 (diff) |
detect comments with no whitespace after //
-rw-r--r-- | data/gen-common.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |