feat(core): Make macros case-insensitive
This commit is contained in:
parent
d6ca812d49
commit
c598fe7fe6
2 changed files with 2 additions and 2 deletions
|
@ -157,7 +157,7 @@ PatternPlugins.prototype.__loadPluginStoreMethods = function (plugin) {
|
|||
* @return {object} this - The Pattern instance
|
||||
*/
|
||||
PatternPlugins.prototype.__macro = function (key, method) {
|
||||
this.macros[key] = method
|
||||
this.macros[key.toLowerCase()] = method
|
||||
|
||||
return this
|
||||
}
|
||||
|
|
|
@ -730,7 +730,7 @@ export function __isCoord(value) {
|
|||
* @return {string} macroName - The inernal macroName
|
||||
*/
|
||||
export function __macroName(name) {
|
||||
return `__macro_${name}`
|
||||
return `__macro_${name.toLowerCase()}`
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue