Merge pull request #3410 from adam-26/1745

Fix issue #1745 - javascript allow dot in filename
pull/3421/head
Adam Cozzette 7 years ago committed by GitHub
commit 8d5f2c57e8
  1. 1
      src/google/protobuf/compiler/js/js_generator.cc

@ -193,6 +193,7 @@ string ModuleAlias(const string& filename) {
string basename = StripProto(filename);
StripString(&basename, "-", '$');
StripString(&basename, "/", '_');
StripString(&basename, ".", '_');
return basename + "_pb";
}

Loading…
Cancel
Save