homebridge-plugin-utils 1.11.1 → 1.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/featureoptions.js
CHANGED
|
@@ -391,7 +391,7 @@ export class FeatureOptions {
|
|
|
391
391
|
option = option.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
392
392
|
// This regular expression is a bit more intricate than you might think it should be due to the need to ensure we capture values at the very end of the option when
|
|
393
393
|
// the option is enabled, and that we ignore the values at the end when the option is disabled in order to correctly traverse the hierarchy.
|
|
394
|
-
return new RegExp("^(Disable|Enable)\\." + option + (!id ? "" : "\\." + id) + "(?:(?<=^Enable\\." + option + (!id ? "" : "\\." + id) + ")\\.([^\\.]
|
|
394
|
+
return new RegExp("^(Disable|Enable)\\." + option + (!id ? "" : "\\." + id) + "(?:(?<=^Enable\\." + option + (!id ? "" : "\\." + id) + ")\\.([^\\.]*))?$", "gi");
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
//# sourceMappingURL=featureoptions.js.map
|
|
@@ -391,7 +391,7 @@ export class FeatureOptions {
|
|
|
391
391
|
option = option.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
392
392
|
// This regular expression is a bit more intricate than you might think it should be due to the need to ensure we capture values at the very end of the option when
|
|
393
393
|
// the option is enabled, and that we ignore the values at the end when the option is disabled in order to correctly traverse the hierarchy.
|
|
394
|
-
return new RegExp("^(Disable|Enable)\\." + option + (!id ? "" : "\\." + id) + "(?:(?<=^Enable\\." + option + (!id ? "" : "\\." + id) + ")\\.([^\\.]
|
|
394
|
+
return new RegExp("^(Disable|Enable)\\." + option + (!id ? "" : "\\." + id) + "(?:(?<=^Enable\\." + option + (!id ? "" : "\\." + id) + ")\\.([^\\.]*))?$", "gi");
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
//# sourceMappingURL=featureoptions.js.map
|
|
@@ -536,7 +536,7 @@ export class webUiFeatureOptions {
|
|
|
536
536
|
|
|
537
537
|
// Find the option in our list and delete it if it exists.
|
|
538
538
|
const optionRegex = new RegExp("^(?:Enable|Disable)\\." + checkbox.id + (!currentDevice ? "" : ("\\." + currentDevice.serialNumber)) +
|
|
539
|
-
"(?:\\.([^\\.]
|
|
539
|
+
"(?:\\.([^\\.]*))?$", "gi");
|
|
540
540
|
|
|
541
541
|
const newOptions = this.#featureOptions.configuredOptions.filter(entry => !optionRegex.test(entry));
|
|
542
542
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-plugin-utils",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.2",
|
|
4
4
|
"displayName": "Homebridge Plugin Utilities",
|
|
5
5
|
"description": "Opinionated utilities to provide common capabilities and create rich configuration webUI experiences for Homebridge plugins.",
|
|
6
6
|
"author": {
|