Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Dec 6, 2024
1 parent 4e7942f commit b524f43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async function _updateElementText(
let title = '';
let dataIgnore = '';
let dataError = '';
const str = text; // TODO-filipe: possible culprit??
const str = text.replace(/\\/g, '\\'); // TODO-filipe: possible culprit??
console.log('debug-updateElementText', text, str);
const tagMatch = str.match(/{% *([^ ]+) *.*%}/);
const cleanedStr = str
Expand All @@ -291,7 +291,7 @@ async function _updateElementText(

try {
if (tagMatch) {
console.log('debug-tagMatch', text, 'str', str, 'cleanedStr', cleanedStr); // TODO-filipe: str and cleanedStr makes the \ disappear,
console.log('debug-tagMatch', text, 'str', str, 'cleanedStr', cleanedStr); // TODO-filipe: str and cleanedStr makes the \ disappear
// TODO-filipe but re-adding it messes up the rendering?
const tagData = tokenizeTag(str);
const tagDefinition = (await getTagDefinitions()).find(d => d.name === tagData.name);
Expand Down

0 comments on commit b524f43

Please sign in to comment.