diff options
author | Phie <phie@phie.ovh> | 2019-03-12 03:39:39 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-03-12 03:39:39 +0300 |
commit | 6c17bc3a2cef180ec6bfab5224513ed23e1f8734 (patch) | |
tree | 0b7eabd6026dfe4e74d058fcd489f2949f3cfffe /utils | |
parent | 89b1a8b290415953d3abcb713f79734591f9af83 (diff) |
removing urls from note summary
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/utils.js b/utils/utils.js index 6be18ea..5b830cf 100644 --- a/utils/utils.js +++ b/utils/utils.js @@ -11,6 +11,9 @@ Utils.caseInsensitiveSrt = function (a, b) { return a.toLowerCase().localeCompare(b.toLowerCase()); } +Utils.httpReg = /(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-A-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-A-Z0-9+&@#\/%=~_|$?!:,.]*\)|[A-Z0-9+&@#\/%=~_|$])/igm + + Utils.srt = function (desc) { return function (a, b) { return desc ? ~~(a < b) : ~~(a > b); |