We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a07545e + d80cf59 commit 2ce742eCopy full SHA for 2ce742e
ProtoBuf.js
@@ -746,7 +746,10 @@
746
token = this.tn.next();
747
}
748
if (!Lang.NAME.test(token)) {
749
- throw(new Error("Illegal option name in message "+parent.name+" at line "+this.tn.line+": "+token));
+ // we can allow options of the form google.protobuf.* since they will just get ignored anyways
750
+ if (!/google\.protobuf\./.test(token)) {
751
+ throw(new Error("Illegal option name in message "+parent.name+" at line "+this.tn.line+": "+token));
752
+ }
753
754
var name = token;
755
@@ -3715,4 +3718,4 @@
3715
3718
global["dcodeIO"]["ProtoBuf"] = loadProtoBuf(global["dcodeIO"]["ByteBuffer"]);
3716
3719
3717
3720
-})(this);
3721
+})(this);
0 commit comments