go-uci icon indicating copy to clipboard operation
go-uci copied to clipboard

uci doesn't like dashes in section names

Open perbu opened this issue 2 years ago • 3 comments

Hi.

I noticed that the parser is a bit more relaxed than the uci parser in OpenWRT. Would you be interested in a patch that would fail is we see something other than a-z, A-Z, 0-9 or "_"?

@relet made me aware of this.

perbu avatar Jan 04 '24 09:01 perbu

(this would naturally be only relevant for the v2 branch)

perbu avatar Jan 04 '24 09:01 perbu

There is an issue on this; #8, which we might address at the same time.

perbu avatar Jan 04 '24 09:01 perbu

As hinted in #8, go-uci ought to try its best to mimic the behaviour of uci itself (i.e. if uci parses "wifi-device", so should go-uci). Keep that in mind when rectifying the parser :)

dmke avatar Jan 04 '24 09:01 dmke