detect comments with no whitespace after //
[project/uqmi.git] / data / gen-common.pm
index 38691fb..60d73e8 100644 (file)
@@ -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);
 }