node-red/node-red-ui-nodes

node-red-node-ui-table regex problem with ":"

multixz opened this issue · 2 comments

Which node are you reporting an issue on?

node-red-node-ui-table v0.3.10

What are the steps to reproduce?

Create a ui_table with the "validator": "regex:^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$"

What happens?

The regex works until the colon. After the colon any character is valid.
valid inputs:

  • 13:35
  • 22:90
  • 12abrfvcs

invalid inputs:

  • 90:20
  • abc:12

What do you expect to happen?

The Validator should detect the 22:90 and 12abrfvcs as invalid.

Please tell us about your environment:

  • Node-RED version: v1.2.6
  • node.js version:10.23.0
  • npm version: 7.7.5
  • Platform/OS: ubuntu 20.04.1 LTS
  • Browser: chrome 89.0.4389.90

looks like it was/is a known problem with the underlying tabulator library. If someone has the time to update the node to try the latest tabulator library and check it doesn't break things it would be much appreciated.

Hope I find some time "soon" ,,,