Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsche committed Feb 18, 2024
1 parent de0fb1f commit 813a541
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doxygen-awesome/doxygen-awesome-godbolt.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class DoxygenAwesomeGodbolt extends HTMLElement {
const content = this.previousSibling.cloneNode(true);
let textContent = DoxygenAwesomeGodbolt.getContent(content);

for (const [before, after] of Object.entries(replacements)) {
for (const [before, after] of Object.entries(this.replacements)) {
// replace includes with compiler explorer friendly alternatives
textContent = textContent.replace(before, after);
}
Expand Down Expand Up @@ -100,7 +100,9 @@ class DoxygenAwesomeGodbolt extends HTMLElement {
}

static parseCompilerSettings(magic_line) {
//TODO replace whichever magic token was used rather than assuming it's 3 characters long
magic_line = magic_line.substr(3).trim();

if (!magic_line) {
return DoxygenAwesomeGodbolt.defaultSettings;
}
Expand Down

0 comments on commit 813a541

Please sign in to comment.