From a3a65b320d6bde3bae6c367ae83c265006cbf46b Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 24 Jul 2017 22:41:09 +0200 Subject: Fix issue #1745 - javascript allow dot in filename --- src/google/protobuf/compiler/js/js_generator.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/google/protobuf/compiler/js/js_generator.cc') diff --git a/src/google/protobuf/compiler/js/js_generator.cc b/src/google/protobuf/compiler/js/js_generator.cc index 7c63e58f..97b88890 100755 --- a/src/google/protobuf/compiler/js/js_generator.cc +++ b/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"; } -- cgit v1.2.3