aboutsummaryrefslogtreecommitdiff
path: root/static/js/posts.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/posts.js')
-rw-r--r--static/js/posts.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/static/js/posts.js b/static/js/posts.js
index 06aab77..79fb7c4 100644
--- a/static/js/posts.js
+++ b/static/js/posts.js
@@ -296,7 +296,12 @@ function dragElement(elmnt) {
function stripTransferProtocol(value){
var re = /(https:\/\/|http:\/\/)?(www.)?/
-
return value.replace(re, "")
}
+function isOnion(value){
+ var re = /\.onion/
+ if(value.match(re) != null)
+ return true
+ return false
+}