修正翻译脚本
This commit is contained in:
parent
4a865c6582
commit
dd9432587b
|
@ -53,12 +53,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
|
||||||
}
|
}
|
||||||
|
|
||||||
function isTranslation(text) {
|
function isTranslation(text) {
|
||||||
if (text) {
|
return text && /[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]/.test(text);
|
||||||
text = text.replace('在线例子', '');
|
|
||||||
return /[\u2E80-\u2EFF\u2F00-\u2FDF\u3000-\u303F\u31C0-\u31EF\u3200-\u32FF\u3300-\u33FF\u3400-\u4DBF\u4DC0-\u4DFF\u4E00-\u9FBF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF]/.test(text);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function attributesToString(node) {
|
function attributesToString(node) {
|
||||||
|
|
Loading…
Reference in New Issue