The inject node was using a restrictive regex that only accepted decimal numbers, while the switch node properly supported binary (0b) and hexadecimal (0x) formats. This inconsistency caused the inject node to show validation errors for valid number formats. Updated the inject node to use the same validateTypedProperty utility function as the switch node, ensuring consistent number validation across both nodes. Fixes #5208
Node-RED
Low-code programming for event-driven applications.
Quick Start
Check out https://nodered.org/docs/getting-started/ for full instructions on getting started.
sudo npm install -g --unsafe-perm node-rednode-red- Open http://localhost:1880
Getting Help
More documentation can be found here.
For further help, or general discussion, please use the Node-RED Forum or slack team.
Developers
If you want to run the latest code from git, here's how to get started:
-
Clone the code:
git clone https://github.com/node-red/node-red.git cd node-red -
Install the node-red dependencies
npm install -
Build the code
npm run build -
Run
npm start
Contributing
Before raising a pull-request, please read our contributing guide.
This project adheres to the Contributor Covenant 1.4. By participating, you are expected to uphold this code. Please report unacceptable behavior to any of the project's core team at team@nodered.org.
Authors
Node-RED is a project of the OpenJS Foundation.
It is maintained by:
- Nick O'Leary @knolleary
- Dave Conway-Jones @ceejay
- And many others...
Copyright and license
Copyright OpenJS Foundation and other contributors, https://openjsf.org under the Apache 2.0 license.
