Bug fixes

This commit is contained in:
sairaj mote 2023-07-06 13:33:24 +05:30
parent 6b7d58910e
commit e0678e808c

View File

@ -181,7 +181,7 @@
</div> </div>
<main id="main_page" class="grid page hidden"> <main id="main_page" class="grid page hidden">
<header id="main_header" class="space-between"> <header id="main_header" class="space-between">
<div class="app-brand"> <div class="app-brand hide-on-mobile">
<svg id="main_logo" class="icon" viewBox="0 0 27.25 32"> <svg id="main_logo" class="icon" viewBox="0 0 27.25 32">
<title>RanchiMall</title> <title>RanchiMall</title>
<path <path
@ -3917,6 +3917,8 @@
} }
// detect url within text and convert to link // detect url within text and convert to link
function linkify(inputText) { function linkify(inputText) {
if (!inputText)
return ''
let replacedText, replacePattern1, replacePattern2, replacePattern3; let replacedText, replacePattern1, replacePattern2, replacePattern3;
//URLs starting with http://, https://, or ftp:// //URLs starting with http://, https://, or ftp://
replacePattern1 = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim; replacePattern1 = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim;