mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 15:34:26 +01:00
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