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