diff --git a/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js index 8fb87634ed..9ee10ea4f5 100644 --- a/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js @@ -155,12 +155,8 @@ define([ validateOnChange: true, validateOnBlur: false, validation : function(value) { - var isvalid = /^[A-Z]+[1-9]\d*:[A-Z]+[1-9]\d*$/.test(value); - - if (!isvalid) - isvalid = /^[A-Z]+[1-9]\d*$/.test(value); - - if (isvalid) { + var isvalid = me.api.asc_checkDataRange(Asc.c_oAscSelectionDialogType.FormatTable, value, true); + if (isvalid == Asc.c_oAscError.ID.No) { return true; } else { return me.textInvalidRange;