fix issue 122

This commit is contained in:
Yang Lin 2016-11-23 02:41:11 +08:00
parent a288e2c0c4
commit b4bfef14e2
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ var sourceVisible = localStorage.getItem('source-visible') === 'true';
function isPureEnglish(text) {
// accept — , quotes, ® and façade too.
text = text.replace('在线例子', '');
return /^[\1-\255—“”ç®…à]*$/.test(text);
return /^[\1-\255—“”ç®…à\u200B]*$/.test(text);
}
function attributesToString(node) {