aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/google/protobuf/compiler/js/js_generator.cc
diff options
context:
space:
mode:
authorGravatar Adam <adam-26@users.noreply.github.com>2017-07-24 22:41:09 +0200
committerGravatar Adam <adam-26@users.noreply.github.com>2017-07-24 22:41:09 +0200
commita3a65b320d6bde3bae6c367ae83c265006cbf46b (patch)
tree1a542caff3107cb2e101c0d83bb6f56cfc8587bc /src/google/protobuf/compiler/js/js_generator.cc
parentf15185d370a5789c65105f77ba806c9faa563325 (diff)
Fix issue #1745 - javascript allow dot in filename
Diffstat (limited to 'src/google/protobuf/compiler/js/js_generator.cc')
-rwxr-xr-xsrc/google/protobuf/compiler/js/js_generator.cc1
1 files changed, 1 insertions, 0 deletions
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";
}