From 733508b6cd14de72bf703f02a9d9e2cd11b32280 Mon Sep 17 00:00:00 2001 From: "Haoran S. Diao" <0@hairydiode.xyz> Date: Mon, 11 Feb 2019 21:38:44 -0500 Subject: Fixed false positive for one of the zdic find and replaces --- manifest.json | 2 +- zdic.js | 2 +- "\345\216\273\350\213\261-0.6-fx.xpi" | Bin 0 -> 8700 bytes "\345\216\273\350\213\261.zip" | Bin 4325 -> 4328 bytes 4 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 "\345\216\273\350\213\261-0.6-fx.xpi" 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(/\.*[a-z].*\<\/span\>/gi,"「去英」"); + e.innerHTML = e.innerHTML.replace(/\[a-z].*?[a-z]\<\/span\>/gi,"「去英」"); } diff --git "a/\345\216\273\350\213\261-0.6-fx.xpi" "b/\345\216\273\350\213\261-0.6-fx.xpi" new file mode 100644 index 0000000..fd10b6a Binary files /dev/null and "b/\345\216\273\350\213\261-0.6-fx.xpi" differ diff --git "a/\345\216\273\350\213\261.zip" "b/\345\216\273\350\213\261.zip" index ec5829f..96e4ba9 100644 Binary files "a/\345\216\273\350\213\261.zip" and "b/\345\216\273\350\213\261.zip" differ -- cgit v1.1