pschillinger / flexbe_chrome_app

Contains the source code of the FlexBE Chrome App.
BSD 3-Clause "New" or "Revised" License
2 stars 6 forks source link

Negative value for a numeric Behavior Parameter default field #12

Closed romainreignier closed 7 years ago

romainreignier commented 7 years ago

In the dashboard view, it seems not possible to assign a default negative value to a numeric Behavior Parameter (the red circle in the attached screenshot).

negative_behavior_parameter

romainreignier commented 7 years ago

I think that this expression:

if (this.value.match(/^[0-9]+(\.[0-9]+)?$/i) == undefined)

Should be replaced by this one which adds the '-' symbol:

if (this.value.match(/^-?[0-9]+(\.[0-9]+)?$/i) == undefined)
pschillinger commented 7 years ago

You are right, this slipped through somehow. Thank you for fixing!