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 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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "displayName": "Xbox TV",
3
3
  "name": "homebridge-xbox-tv",
4
- "version": "3.3.6-beta.7",
4
+ "version": "3.3.6",
5
5
  "description": "Homebridge plugin to control Xbox game consoles.",
6
6
  "license": "MIT",
7
7
  "author": "grzegorz914",
package/src/xboxdevice.js CHANGED
@@ -144,11 +144,11 @@ class XboxDevice extends EventEmitter {
144
144
  }
145
145
 
146
146
  async sanitizeString(str) {
147
- // Remove dots, colons, and semicolons if inside a word
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 semicolons anywhere in the string
151
- str = str.replace(/[.:;]/g, '');
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
- //sanitize string
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