xml-lang-mismatch-evaluate.js 328 B

12345678910
  1. import { getBaseLang } from '../../core/utils';
  2. function xmlLangMismatchEvaluate(node, options, vNode) {
  3. const primaryLangValue = getBaseLang(vNode.attr('lang'));
  4. const primaryXmlLangValue = getBaseLang(vNode.attr('xml:lang'));
  5. return primaryLangValue === primaryXmlLangValue;
  6. }
  7. export default xmlLangMismatchEvaluate;