Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Sep 26, 2024
1 parent 608009b commit 062caa5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 64 deletions.
2 changes: 1 addition & 1 deletion src/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ ReflectionObject.prototype.setParsedOption = function setParsedOption(name, valu
if (!this.parsedOptions) {
this.parsedOptions = [];
}
var isFeature = /^features\./.test(name);
var isFeature = /^features$/.test(name);
var parsedOptions = this.parsedOptions;
if (propName) {
// If setting a sub property of an option then try to merge it
Expand Down
2 changes: 1 addition & 1 deletion src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ function parse(source, root, options) {
dummy.setParsedOption = function(name, value, propName) {
// In order to not change existing behavior, only calling
// this for features
if (/^features\./.test(name)) {
if (/^features$/.test(name)) {
return ReflectionObject.prototype.setParsedOption.call(dummy, name, value, propName);
}
return undefined;
Expand Down
62 changes: 0 additions & 62 deletions tests/data/feature-resolution.proto

This file was deleted.

0 comments on commit 062caa5

Please sign in to comment.