fix: 防止不同元素的对照文本混淆

This commit is contained in:
Zhicheng WANG 2019-01-03 22:17:27 +08:00
parent eba5f6b738
commit 178778222f
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ const {markAndSwapAll} = require('@awesome-fe/translate');
const {JSDOM} = require('jsdom');
const selectorGroups = ['p,h1,h2,h3,h4,h5,h6,header,section', 't,span,a'];
const selectorGroups = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'header', 'section', 'p', 't', 'span', 'a'];
function mark(text) {
const dom = new JSDOM(text);