From 04d9274e995ebaa347e4e4124d4a34a20bec6871 Mon Sep 17 00:00:00 2001 From: Marco Capetta Date: Fri, 21 Apr 2023 17:17:11 +0200 Subject: [PATCH] MT#57240 Allow '+' char in device line number definition Change-Id: I804ac0014405f6c4646b29f7fc22e67ba70909fd --- .../pages/PbxConfiguration/CscPbxDeviceConfigKeyForm.vue | 4 ++-- src/i18n/en.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/pages/PbxConfiguration/CscPbxDeviceConfigKeyForm.vue b/src/components/pages/PbxConfiguration/CscPbxDeviceConfigKeyForm.vue index 0561b082..cf7eec66 100644 --- a/src/components/pages/PbxConfiguration/CscPbxDeviceConfigKeyForm.vue +++ b/src/components/pages/PbxConfiguration/CscPbxDeviceConfigKeyForm.vue @@ -152,7 +152,7 @@ export default { target_number: { required, onlyChars: function (value) { - const regExpTargetNumber = new RegExp("^[*#0-9]*$"); + const regExpTargetNumber = new RegExp("^[*#0-9+]*$"); return regExpTargetNumber.test(value) } } @@ -297,7 +297,7 @@ export default { field: this.$t('Target number') }) } else if (!this.$v.changes.target_number.onlyChars) { - return this.$t('{field} must consist only of numeric characters or the symbols * or #.', { + return this.$t('{field} must consist only of numeric characters or the symbols +, * or #.', { field: this.$t('Target number') }) } else { diff --git a/src/i18n/en.json b/src/i18n/en.json index 62d2346e..7475d58f 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -562,6 +562,6 @@ "{field} must be at least {minValue} second": "{field} must be at least {minValue} second", "{field} must be maximum of {maxValue} seconds": "{field} must be maximum of {maxValue} seconds", "{field} must consist of numeric characters only": "{field} must consist of numeric characters only", - "{field} must consist only of numeric characters or the symbols * or #.": "{field} must consist only of numeric characters or the symbols * or #.", + "{field} must consist only of numeric characters or the symbols +, * or #.": "{field} must consist only of numeric characters or the symbols +, * or #.", "{field} must have at most {maxLength} letters": "{field} must have at most {maxLength} letters" } \ No newline at end of file