You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!isKoreanIncluded(textStripped)) return; // Textlint only when korean is included in `textStripped`.
Object.values(data).forEach((type1) => {
Object.values(type1).forEach((type2) => {
type2.forEach(({sources, target}) => {
sources.forEach((source) => {
const matchIndex = text.match(new RegExp(source, 'i')); // Do not use 'g' flag with textlint's CLI 'pretty-error' option. It prevents textlint from finding the exact locations.
const match = textStripped.match(new RegExp(source, 'i'));
if (match) {
report(
node,
new RuleError(errMsgTranslateGlossary(match[0], target), {