Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PhieF/CarnetElectron.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-03-12 03:39:39 +0300
committerPhie <phie@phie.ovh>2019-03-12 03:39:39 +0300
commit6c17bc3a2cef180ec6bfab5224513ed23e1f8734 (patch)
tree0b7eabd6026dfe4e74d058fcd489f2949f3cfffe /utils
parent89b1a8b290415953d3abcb713f79734591f9af83 (diff)
removing urls from note summary
Diffstat (limited to 'utils')
-rw-r--r--utils/utils.js3
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);