Skip to content

Commit

Permalink
Allow the vrm_id to be empty (issue #10)
Browse files Browse the repository at this point in the history
The validation of the vrm_id would also triggers when not using the DESS
installation type. Allowing it to be empty instead of the 16 character
check passes the check when the type is not DESS.
  • Loading branch information
dirkjanfaber committed Jan 5, 2024
1 parent bb6c2ec commit 036adba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nodes/vrm-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
stats_end: {value: ""},
use_utc: { value: false },
// dess
vrm_id: {value: "", validate: RED.validators.regex(/^[0-9a-zA-Z]{1,16}$/), required: false},
vrm_id: {value: "", validate: RED.validators.regex(/^([0-9a-zA-Z]{1,16}|)$/),required: false},
country: {value: "", required: false},
b_max: {value: "", required: false},
tb_max: {value: "", required: false},
Expand Down

0 comments on commit 036adba

Please sign in to comment.