sanitize extension ID in getExtensionIdForOpcode

This commit is contained in:
Christopher Willis-Ford 2020-06-15 17:41:35 -07:00
parent b67ba75d8b
commit 90b9da45f4
3 changed files with 10 additions and 2 deletions

View file

@ -310,6 +310,7 @@ class SomeBlocks {
return {
// Required: the machine-readable name of this extension.
// Will be used as the extension's namespace.
// Allowed characters are those matching the regular expression [\w-]: A-Z, a-z, 0-9, and hyphen ("-").
id: 'someBlocks',
// Core extensions only: override the default extension block colors.