Skip to content

Commit

Permalink
URI detection for sms changed
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-foerster committed Feb 26, 2015
1 parent 04eccc5 commit c2fd66c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qml/js/Utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ THE SOFTWARE.
.pragma library

function isLink(text) {
var urls = text.match(/^(http[s]*:\/\/.{3,500}|www\..{3,500}|sms:\+\d{5,})$/);
var urls = text.match(/^(http[s]*:\/\/.{3,500}|www\..{3,500}|sms:.*)$/);
var vcard = text.match(/^(.+VCARD.+)$/);
// is a known url scheme and not a vcard
return (urls && urls.length > 0 && !(vcard && vcard.length > 0));
Expand Down

0 comments on commit c2fd66c

Please sign in to comment.