v0.3.3: is lib word, UTF–8 string support
This commit is contained in:
@@ -270,6 +270,9 @@ func (c *Clyx) popCallerToken() any {
|
||||
if err != nil { fmt.Fprintf(os.Stderr, "Error: %v\n", err); return nil }
|
||||
return qParsed
|
||||
}
|
||||
if s, ok := t.(string); ok {
|
||||
return normToken(s)
|
||||
}
|
||||
return t
|
||||
}
|
||||
|
||||
@@ -284,6 +287,9 @@ func (c *Clyx) cmdDefw() {
|
||||
if isQForm { val = c.popCallerToken() }
|
||||
}
|
||||
if val == nil { val = c.pop() }
|
||||
if s, ok := val.(string); ok {
|
||||
val = normToken(s)
|
||||
}
|
||||
nameVal := c.pop()
|
||||
var name string
|
||||
if s, ok := nameVal.(string); ok {
|
||||
|
||||
Reference in New Issue
Block a user