aboutsummaryrefslogtreecommitdiffstats
path: root/core/plugin/openimg
diff options
context:
space:
mode:
Diffstat (limited to 'core/plugin/openimg')
-rw-r--r--core/plugin/openimg/openimg.rb2
-rw-r--r--core/plugin/openimg/pattern_file.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/core/plugin/openimg/openimg.rb b/core/plugin/openimg/openimg.rb
index cdc7a268..1888ec9f 100644
--- a/core/plugin/openimg/openimg.rb
+++ b/core/plugin/openimg/openimg.rb
@@ -168,7 +168,7 @@ Plugin.create :openimg do
end
end
- pattern = JSON.parse(file_get_contents(File.expand_path(File.join(File.dirname(__FILE__), 'pattern_file.json'))))
+ pattern = JSON.parse(file_get_contents(File.expand_path(File.join(File.dirname(__FILE__), 'pattern_file.json'))), create_additions: true)
pattern.each{ |name, config|
addsupport(Regexp.new(config["url"]), config["attribute"])
}
diff --git a/core/plugin/openimg/pattern_file.json b/core/plugin/openimg/pattern_file.json
index 1f442178..d9c747f6 100644
--- a/core/plugin/openimg/pattern_file.json
+++ b/core/plugin/openimg/pattern_file.json
@@ -146,5 +146,12 @@
"attribute": {
"id": "image"
}
+ },
+ "pikubo": {
+ "url": "^http://(?:pikubo\\.jp/photo/[a-zA-Z0-9-]+|pikubo\\.me/[a-zA-Z0-9]+)",
+ "attribute": {
+ "class": "photo_frame kadomaru"
+ }
}
+
}