Skip to content

Commit

Permalink
Support new Nexmosphere X-Script Commands containing space characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jdesportes committed Jul 29, 2020
1 parent 4ecabc2 commit 20783cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion OutputInterfaceAsset/Nexmosphere/Nexmosphere.ifd
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"discoveryVersion": "v2.1",
"id": "Nexmosphere",
"name": "Nexmosphere",
"version": "2.1",
"version": "2.2",
"protocol": "native",
"baseUrl": null,
"basePath": "Nexmosphere",
Expand Down
4 changes: 2 additions & 2 deletions OutputInterfaceAsset/Nexmosphere/XScriptCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
*/
function XScriptCommand(xScript) {
// Regex pattern for generic X-Script command
this.xScriptCommandPattern = /^(X|G|S|D)([0-9]{3})(A|B|S)\[(\S*)\]$/;
this.xScriptCommandPattern = /^(X|G|S|D)([0-9]{3})(A|B|S)\[(.*)\]$/;
// Regex pattern for specific XR ANTENNA DRIVER X-Script command
this.xrXScriptCommandPattern = /^(XR)\[(\S*)\]$/;
this.xrXScriptCommandPattern = /^(XR)\[(.*)\]$/;

// X-Script command string
this.xScript = xScript;
Expand Down

0 comments on commit 20783cb

Please sign in to comment.