1
0
Fork 0

feat(core): Make macros case-insensitive

This commit is contained in:
joostdecock 2023-09-05 20:35:31 +02:00
parent d6ca812d49
commit c598fe7fe6
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ PatternPlugins.prototype.__loadPluginStoreMethods = function (plugin) {
* @return {object} this - The Pattern instance * @return {object} this - The Pattern instance
*/ */
PatternPlugins.prototype.__macro = function (key, method) { PatternPlugins.prototype.__macro = function (key, method) {
this.macros[key] = method this.macros[key.toLowerCase()] = method
return this return this
} }

View file

@ -730,7 +730,7 @@ export function __isCoord(value) {
* @return {string} macroName - The inernal macroName * @return {string} macroName - The inernal macroName
*/ */
export function __macroName(name) { export function __macroName(name) {
return `__macro_${name}` return `__macro_${name.toLowerCase()}`
} }
/** /**