@defra/fcp-sfd-frontend-engine 0.30.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs
CHANGED
|
@@ -390,7 +390,7 @@ var Joi = import_joi.default.extend((joi) => ({
|
|
|
390
390
|
|
|
391
391
|
// src/schemas/business/business-sbi-schema.js
|
|
392
392
|
var businessSbiSchema = Joi.object({
|
|
393
|
-
sbi: Joi.string().pattern(/^\d{9}$/).allow("").optional().messages({
|
|
393
|
+
sbi: Joi.string().trim().pattern(/^\d{9}$/).allow("").optional().messages({
|
|
394
394
|
"string.pattern.base": "Enter the full SBI",
|
|
395
395
|
"string.noControlChars": "SBI must not contain invalid characters"
|
|
396
396
|
})
|
|
@@ -559,7 +559,7 @@ var businessSchemas = {
|
|
|
559
559
|
|
|
560
560
|
// src/schemas/customer/customer-crn-schema.js
|
|
561
561
|
var customerCrnSchema = Joi.object({
|
|
562
|
-
crn: Joi.string().pattern(/^\d{10}$/).allow("").optional().messages({
|
|
562
|
+
crn: Joi.string().trim().pattern(/^\d{10}$/).allow("").optional().messages({
|
|
563
563
|
"string.pattern.base": "Enter the full CRN",
|
|
564
564
|
"string.noControlChars": "CRN must not contain invalid characters"
|
|
565
565
|
})
|
package/dist/index.js
CHANGED
|
@@ -349,7 +349,7 @@ var Joi = BaseJoi.extend((joi) => ({
|
|
|
349
349
|
|
|
350
350
|
// src/schemas/business/business-sbi-schema.js
|
|
351
351
|
var businessSbiSchema = Joi.object({
|
|
352
|
-
sbi: Joi.string().pattern(/^\d{9}$/).allow("").optional().messages({
|
|
352
|
+
sbi: Joi.string().trim().pattern(/^\d{9}$/).allow("").optional().messages({
|
|
353
353
|
"string.pattern.base": "Enter the full SBI",
|
|
354
354
|
"string.noControlChars": "SBI must not contain invalid characters"
|
|
355
355
|
})
|
|
@@ -518,7 +518,7 @@ var businessSchemas = {
|
|
|
518
518
|
|
|
519
519
|
// src/schemas/customer/customer-crn-schema.js
|
|
520
520
|
var customerCrnSchema = Joi.object({
|
|
521
|
-
crn: Joi.string().pattern(/^\d{10}$/).allow("").optional().messages({
|
|
521
|
+
crn: Joi.string().trim().pattern(/^\d{10}$/).allow("").optional().messages({
|
|
522
522
|
"string.pattern.base": "Enter the full CRN",
|
|
523
523
|
"string.noControlChars": "CRN must not contain invalid characters"
|
|
524
524
|
})
|
package/package.json
CHANGED