@ai-matrx/content-ir 0.21.2 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/source.js CHANGED
@@ -847,6 +847,7 @@ var XML_NAME_START = /[A-Za-z_]/;
847
847
  var XML_NAME_CHARACTER = /[\w.:-]/;
848
848
  var WHITESPACE = /\s/;
849
849
  function readXmlTag(content, start, find = (needle, from) => content.indexOf(needle, from)) {
850
+ if (content[start] !== "<") return null;
850
851
  let cursor = start + 1;
851
852
  const isClosing = content[cursor] === "/";
852
853
  if (isClosing) cursor++;