diff --git a/src/client/widgets/containers/matrix.js b/src/client/widgets/containers/matrix.js index 41c1afae..6149ec18 100644 --- a/src/client/widgets/containers/matrix.js +++ b/src/client/widgets/containers/matrix.js @@ -19,7 +19,7 @@ class Matrix extends StaticProperties(Panel, {scroll: false}) { _matrix: 'matrix', - widgetType: {type: 'string', value: 'toggle', help: 'Defines the type of the widgets in the matrix'}, + widgetType: {type: 'string', value: 'button', help: 'Defines the type of the widgets in the matrix'}, layout: {type: 'string', value: 'horizontal', choices: ['horizontal', 'vertical', 'grid'], help:''}, gridTemplate: {type: 'string|number', value: '', help:'If `layout` is `grid`, can be either a number of columns of a value css grid-template definition.'}, quantity: {type: 'number', value: 4, help: 'Defines the number of widgets in the matrix'}, diff --git a/src/server/options.js b/src/server/options.js index f06f5777..a0d58a66 100644 --- a/src/server/options.js +++ b/src/server/options.js @@ -3,7 +3,7 @@ var fs = require('fs') module.exports = { 's': {alias: 'send', type: 'array', describe: 'default targets for all widgets (ip: port / domain: port / midi: port_name pairs)', check: (s)=>{ - return s.some(item=>!item.match(/^[^: ]*: [0-9]{4, 5}$/) && !item.match(/^midi: .*$/)) ? + return s.some(item=>!item.match(/^[^:]*:[0-9]{4,5}$/) && !item.match(/^midi:.*$/)) ? 'Targets must be ip: port or domain: port pairs (udp / tcp port must be >= 1024) or midi: port_name pairs' : true } },