lib/onebox/engine/github_folder_onebox.rb in onebox-2.2.14 vs lib/onebox/engine/github_folder_onebox.rb in onebox-2.2.15
- old
+ new
@@ -5,10 +5,10 @@
class GithubFolderOnebox
include Engine
include StandardEmbed
include LayoutSupport
- matches_regexp Regexp.new(/^https?:\/\/(?:www\.)?(?:(?:\w)+\.)?(github)\.com[\:\d]*(\/[^\/]+){2}/)
+ matches_regexp(/^https?:\/\/(?:www\.)?(?:(?:\w)+\.)?(github)\.com[\:\d]*(\/[^\/]+){2}/)
always_https
def self.priority
# This engine should have lower priority than the other Github engines
150