Ver Fonte

FIX.允许name下划线开头

RegMs If há 4 anos atrás
pai
commit
3e15c197db
2 ficheiros alterados com 1 adições e 1 exclusões
  1. BIN
      mua
  2. 1 1
      type.go

BIN
mua


+ 1 - 1
type.go

@@ -17,7 +17,7 @@ const (
 )
 
 const (
-	_name      = `([A-Za-z]\w*)`
+	_name      = `([A-Za-z_]\w*)`
 	_nameOrInt = "(" + _name + `|\d+)`
 	_index     = "(" + _nameOrInt + "|:|" + _nameOrInt + ":|:" + _nameOrInt + "|" + _nameOrInt + ":" + _nameOrInt + ")"
 )