Replies: 0 comments 1 reply
-
Because macros are called in a case-insensitive way, different case spellings are counted as different keys. You can fix that by - for (const macro of fastKSParser(document.rawBody)) {
+ for (let macro of fastKSParser(document.rawBody)) {
+ macro = macro.toLowerCase(); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Suppose you ask yourself; what are the most commonly used kumascript macros in the content? Well, I often do and I often forget how I compute it. But sharing it here I'll remember to just copy-n-paste next time:
And I run it (from the root of the
mdn/content
repo) like this:And the output is...:
That's it.
Beta Was this translation helpful? Give feedback.
All reactions