Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 44cdc3c

Browse files
authored
Merge pull request #13 from dpeukert/master
Fixed cash register regex
2 parents d27a486 + dfe9888 commit 44cdc3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function businessPremisesId (value) {
4545
*
4646
*/
4747
function cashRegisterId (value) {
48-
if (!/^[0-9a-zA-Z\.,:;/#\-_]{1,20}$/.test(value)) {
48+
if (!/^[0-9a-zA-Z\.,:;/#\-_ ]{1,20}$/.test(value)) {
4949
throw new Error(`Value '${value}' doesn't match pattern for cash register ID.`)
5050
}
5151
}

0 commit comments

Comments
 (0)