run modernize

This commit is contained in:
Kovid Goyal
2025-11-11 17:09:37 +05:30
parent 1faf786bd2
commit 6f588a0c29
30 changed files with 46 additions and 60 deletions

View File

@@ -137,7 +137,7 @@ func (p *parsed_data) run_loop() (err error) {
raw := utils.UnsafeBytesToString(data[len(ESC_CODE_PREFIX[2:]):])
metadata, payload, _ := strings.Cut(raw, ";")
sent_identifier, payload_type := "", ""
for _, x := range strings.Split(metadata, ":") {
for x := range strings.SplitSeq(metadata, ":") {
key, val, _ := strings.Cut(x, "=")
switch key {
case "i":