Skip to content

Commit

Permalink
Merge pull request #25 from jrviz/master
Browse files Browse the repository at this point in the history
Allow decimal point in parameters
  • Loading branch information
jrviz authored Jun 3, 2022
2 parents c91ddbf + d1aa0a1 commit c2e6d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ function handleStageDisplayMessage(message) {
propresenter_csn = objData.ary[i].txt.toString()
propresenter_csn_commands = []
let noteString = objData.ary[i].txt.toString() + ';' // add terminating semicolon to allow for backwards compatibility of a single command in notes without a terminator
let commandset = noteString.match(/(\w+\s*:[\w\s,]*?;)/g)
let commandset = noteString.match(/(\w+\s*:[\w\s,\.]*?;)/g)
if (commandset !== null) {
for (const item of commandset) {
let command = item.substring(0, item.indexOf(':')).trim().toLowerCase()
Expand Down Expand Up @@ -715,7 +715,7 @@ function handleStageDisplayMessage(message) {
propresenter_nsn = objData.ary[i].txt.toString()
propresenter_nsn_commands = []
let noteString = objData.ary[i].txt.toString() + ';' // add terminating semicolon to allow for backwards compatibility of a single command in notes without a terminator
let commandset = noteString.match(/(\w+\s*:[\w\s,]*?;)/g)
let commandset = noteString.match(/(\w+\s*:[\w\s,\.]*?;)/g)
if (commandset !== null) {
for (const item of commandset) {
let command = item.substring(0, item.indexOf(':')).trim().toLowerCase()
Expand Down Expand Up @@ -1088,4 +1088,4 @@ ipcMain.on('presentationbridge_disconnect', function (event) {

ipcMain.on('presentationbridge_force_disconnect', function (event) {
presentationbridge_disconnect();
});
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "presentationbridge-client",
"productName": "PresentationBridge Client",
"version": "1.0.13",
"version": "1.0.14",
"description": "Links data from your Presentation / lyrics software to other software.",
"license": "MIT",
"repository": "josephdadams/presentationbridge-client",
Expand Down

0 comments on commit c2e6d94

Please sign in to comment.