homebridge-xbox-tv 3.3.6-beta.7 → 3.3.6
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/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/xboxdevice.js +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
- After update to 2.x.x the plugin settings (xboxLiveId) need to be updated
|
|
11
11
|
- After update to v3.0.0 RESTFull and MQTT config settings need to be updated
|
|
12
12
|
|
|
13
|
+
## [3.3.6] - (02.06.2025)
|
|
14
|
+
|
|
15
|
+
## Changes
|
|
16
|
+
|
|
17
|
+
- fix HAP-NodeJS WARNING: The accessory has an invalid 'Name' characteristic 'configuredName'
|
|
18
|
+
- Please use only alphanumeric, space, and apostrophe characters
|
|
19
|
+
- Ensure it starts and ends with an alphabetic or numeric character, and avoid emojis
|
|
20
|
+
|
|
13
21
|
## [3.3.4] - (05.02.2025)
|
|
14
22
|
|
|
15
23
|
## Changes
|
package/package.json
CHANGED
package/src/xboxdevice.js
CHANGED
|
@@ -144,11 +144,11 @@ class XboxDevice extends EventEmitter {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
async sanitizeString(str) {
|
|
147
|
-
//
|
|
148
|
-
str = str.replace(/(\w)[.:;]+(\w)/g, '$1$2');
|
|
147
|
+
// Replace dots, colons, and semicolons inside words with a space
|
|
148
|
+
str = str.replace(/(\w)[.:;]+(\w)/g, '$1 $2');
|
|
149
149
|
|
|
150
|
-
// Remove remaining dots, colons, and
|
|
151
|
-
str = str.replace(/[
|
|
150
|
+
// Remove remaining dots, colons, semicolons, plus, and minus anywhere in the string
|
|
151
|
+
str = str.replace(/[.:;+\-]/g, '');
|
|
152
152
|
|
|
153
153
|
// Replace all other invalid characters (anything not A-Z, a-z, 0-9, space, or apostrophe) with a space
|
|
154
154
|
str = str.replace(/[^A-Za-z0-9 ']/g, ' ');
|
|
@@ -705,7 +705,7 @@ class XboxDevice extends EventEmitter {
|
|
|
705
705
|
//get input name
|
|
706
706
|
const name = input.name ?? `Input ${inputIdentifier}`;
|
|
707
707
|
|
|
708
|
-
//
|
|
708
|
+
//saved string
|
|
709
709
|
const savedInputsNames = this.savedInputsNames[inputReference] ?? false;
|
|
710
710
|
input.name = savedInputsNames ? savedInputsNames.substring(0, 64) : name.substring(0, 64);
|
|
711
711
|
|