From dfe9888fe50f8fad73190ceb7274be73bbdddbf5 Mon Sep 17 00:00:00 2001 From: Daniel Peukert Date: Fri, 24 Feb 2017 16:48:23 +0100 Subject: [PATCH] Fixed cash register regex --- lib/validate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validate.js b/lib/validate.js index 81a06c5..872ca36 100644 --- a/lib/validate.js +++ b/lib/validate.js @@ -45,7 +45,7 @@ function businessPremisesId (value) { * */ function cashRegisterId (value) { - if (!/^[0-9a-zA-Z\.,:;/#\-_]{1,20}$/.test(value)) { + if (!/^[0-9a-zA-Z\.,:;/#\-_ ]{1,20}$/.test(value)) { throw new Error(`Value '${value}' doesn't match pattern for cash register ID.`) } }