Skip to content

Commit

Permalink
FIX: OscMixerConnection - compare whole command length
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Dec 20, 2019
1 parent 43debe1 commit 876b367
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/utils/OscMixerConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,9 @@ export class OscMixerConnection {
let messageArray: string[] = message.split('/')
let commandArray: string[] = command.split('/')
let status: boolean = true

if (messageArray.length !== commandArray.length) {
return false
}
commandArray.forEach((commandPart: string, index: number) => {
if (commandPart === '{channel}') {
if (typeof(parseFloat(messageArray[index])) !== 'number') { status = false }
Expand Down

0 comments on commit 876b367

Please sign in to comment.