aboutsummaryrefslogtreecommitdiff
path: root/plugin.rb
diff options
context:
space:
mode:
authorhow <how@zoethical.com>2018-11-14 11:48:24 +0100
committerhow <how@zoethical.com>2018-11-14 11:48:24 +0100
commit20a073975568783711566f9d86bd0512ae92f1f8 (patch)
treeb0d061008a9b38865d76fd539cd96de2ac7a72cc /plugin.rb
parentf96eb3440b6f0af0524197210c49de0e45775adf (diff)
parentaa3032f1074106a3472a8e8b25b0395ea2a52eb1 (diff)
downloaddiscourse-pad-20a073975568783711566f9d86bd0512ae92f1f8.tar.gz
Version 0.1.0v0.1.0
- Tighten URL regular expression to match https://pad.libreho.st/ - See [CHANGELOG](../CHANGELOG.md) See merge request librehosters/embed-codimd!1
Diffstat (limited to 'plugin.rb')
-rw-r--r--plugin.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin.rb b/plugin.rb
index e0cbd8d..32b1303 100644
--- a/plugin.rb
+++ b/plugin.rb
@@ -6,8 +6,8 @@
class Onebox::Engine::CodimdOnebox
include Onebox::Engine
- #we only want to match for a specific codimd domain
- matches_regexp /pad.libreho.st/
+ # we only want to match for a specific codimd domain
+ matches_regexp %r{\Ahttps://pad\.libreho\.st/}
def to_html
"<iframe name='embed_readwrite' src='#{@url}' style='border-width:0' frameborder='0' scrolling='no' width='100%' height=600></iframe><br><a href='#{@url}' target='_blank'>Goto this Pad</a>"