Browse Source

Fix issue #1745 - javascript allow dot in filename

Adam 8 years ago
parent
commit
a3a65b320d
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/google/protobuf/compiler/js/js_generator.cc

+ 1 - 0
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";
 }