Merge pull request #123 from todoubaba/issue-122

fix issue 122
This commit is contained in:
Rex 2016-11-22 19:13:45 +00:00 committed by GitHub
commit 6196a2beac
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) { function isPureEnglish(text) {
// accept — , quotes, ® and façade too. // accept — , quotes, ® and façade too.
text = text.replace('在线例子', ''); text = text.replace('在线例子', '');
return /^[\1-\255—“”ç®…à]*$/.test(text); return /^[\1-\255—“”ç®…à\u200B]*$/.test(text);
} }
function attributesToString(node) { function attributesToString(node) {