v0.3.3: is lib word, UTF–8 string support

This commit is contained in:
Luxferre
2026-07-07 08:25:11 +03:00
parent 147089dc23
commit 6ccd7e7350
3 changed files with 16 additions and 1 deletions
+6
View File
@@ -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 {