lang: funcs: core: Make module names public
This is needed for when we have nested modules.
This commit is contained in:
@@ -26,7 +26,7 @@ import (
|
||||
)
|
||||
|
||||
func init() {
|
||||
simple.ModuleRegister(moduleName, "match", &types.FuncValue{
|
||||
simple.ModuleRegister(ModuleName, "match", &types.FuncValue{
|
||||
T: types.NewType("func(pattern str, s str) bool"),
|
||||
V: Match,
|
||||
})
|
||||
|
||||
@@ -18,6 +18,6 @@
|
||||
package coreregexp
|
||||
|
||||
const (
|
||||
// moduleName is the prefix given to all the functions in this module.
|
||||
moduleName = "regexp"
|
||||
// ModuleName is the prefix given to all the functions in this module.
|
||||
ModuleName = "regexp"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user