summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran S. Diao <0@hairydiode.xyz>2019-02-11 21:38:44 -0500
committerHaoran S. Diao <0@hairydiode.xyz>2019-02-11 21:38:44 -0500
commit733508b6cd14de72bf703f02a9d9e2cd11b32280 (patch)
treef24590288b1e24696af679cb231361a72cd3ad75
parent8b1dd7706a7cb2c9186005af0a93081793547dba (diff)
Fixed false positive for one of the zdic find and replaces
-rw-r--r--manifest.json2
-rw-r--r--zdic.js2
-rw-r--r--去英-0.6-fx.xpibin0 -> 8700 bytes
-rw-r--r--去英.zipbin4325 -> 4328 bytes
4 files changed, 2 insertions, 2 deletions
diff --git a/manifest.json b/manifest.json
index 474d419..868812d 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "去英",
- "version": "0.5",
+ "version": "0.6",
"browser_specific_settings": {
"gecko": {
"id": "deanglicize@hairydiode.xyz",
diff --git a/zdic.js b/zdic.js
index df4becd..920f411 100644
--- a/zdic.js
+++ b/zdic.js
@@ -3,5 +3,5 @@ for(i=0; i < tabpages.length; i++){
e = tabpages[i];
e.innerHTML = e.innerHTML.replace(/English.*[a-z].*/gi,"「去英」");
e.innerHTML = e.innerHTML.replace(/\[.*[a-z].*\]/gi,"「去英」");
- e.innerHTML = e.innerHTML.replace(/\<span.*\>.*[a-z].*\<\/span\>/gi,"「去英」");
+ e.innerHTML = e.innerHTML.replace(/\<span.*\>[a-z].*?[a-z]\<\/span\>/gi,"「去英」");
}
diff --git a/去英-0.6-fx.xpi b/去英-0.6-fx.xpi
new file mode 100644
index 0000000..fd10b6a
--- /dev/null
+++ b/去英-0.6-fx.xpi
Binary files differ
diff --git a/去英.zip b/去英.zip
index ec5829f..96e4ba9 100644
--- a/去英.zip
+++ b/去英.zip
Binary files differ