Skip to content

Commit

Permalink
try bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Sep 26, 2024
1 parent 2a9a5ec commit 3fbddab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion desktop/common/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,7 +1335,7 @@ jeedomUtils.normTextLower = function(_text) {
}

jeedomUtils.linkify = function(inputText) {
if (!inputText || inputText == '' || inputText === null) {
if (!inputText || inputText == '' || inputText === null || typeof inputText !== 'string') {
return ''
}
var replacePattern1 = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim
Expand Down

0 comments on commit 3fbddab

Please sign in to comment.