소스 검색

FIX.允许name下划线开头

RegMs If 4 년 전
부모
커밋
3e15c197db
2개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 + ")"
 )