From 5f51a2c7b17ee66e709d514cb13e3937ba39bc00 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 17 Jun 2022 13:56:56 +0300 Subject: [PATCH] Fix bug --- .../main/app/view/HyperlinkSettingsDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js b/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js index ebc109d30..9ae19327e 100644 --- a/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js +++ b/apps/spreadsheeteditor/main/app/view/HyperlinkSettingsDialog.js @@ -326,8 +326,8 @@ define([ } } else { var url = this.inputUrl.getValue().replace(/^\s+|\s+$/g,''); - if (me.urlType!==AscCommon.c_oAscUrlType.Unsafe && ! /(((^https?)|(^ftp)):\/\/)|(^mailto:)/i.test(url) ) - url = ( (me.urlType==AscCommon.c_oAscUrlType.Email) ? 'mailto:' : 'http://' ) + url; + if (this.urlType!==AscCommon.c_oAscUrlType.Unsafe && ! /(((^https?)|(^ftp)):\/\/)|(^mailto:)/i.test(url) ) + url = ( (this.urlType==AscCommon.c_oAscUrlType.Email) ? 'mailto:' : 'http://' ) + url; url = url.replace(new RegExp("%20",'g')," "); props.asc_setHyperlinkUrl(url); def_display = url;