fix(rtl): use splitScalar for cmdline

This commit is contained in:
Loïc Grégoire
2026-03-28 13:15:23 -04:00
parent c0d4dac5d2
commit 263e971b1d
+1 -1
View File
@@ -4,7 +4,7 @@ const std = @import("std");
/// Get the string value of `key` in `cmdline`.
pub fn get_string(cmdline: []const u8, key: []const u8) ?[]const u8 {
var parts = std.mem.splitAny(u8, cmdline, " ");
var parts = std.mem.splitScalar(u8, cmdline, ' ');
while (parts.next()) |part| {
if (part.len > key.len + 1 and
std.mem.startsWith(u8, part, key) and