summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHoàng Đức Hiếu <hdhoang@zahe.me>2015-05-30 12:43:40 +0700
committerHoàng Đức Hiếu <hdhoang@zahe.me>2015-05-30 12:43:40 +0700
commit6674d78d199e3bbf2ddc9ff71298a11093afe064 (patch)
treef0cc30e99043daece66bb29204fc030c606ac043
parent27d31dc052d53cecdb1d68158c03fbaf7654a37d (diff)
enhancer: extract xkcd alt text
-rw-r--r--articleenhancer/regexenhancers.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/articleenhancer/regexenhancers.json b/articleenhancer/regexenhancers.json
index c1c4d1ef0..d6a738768 100644
--- a/articleenhancer/regexenhancers.json
+++ b/articleenhancer/regexenhancers.json
@@ -45,5 +45,10 @@
"%-\\d+x\\d+%": "",
"%(width|height)=\"\\d+\"%" : ""
}
+ },
+ "xkcd.com": {
+ "%xkcd.com/\\d+/%": {
+ "%alt=\"(.+)\" */>%": "/><br/>$1"
+ }
}
}