mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
e435a56a17
commit
11ee5fce09
1 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ impl<'a> Body<'a> {
|
|||
"hi" | "hey" | "cd" | "hover" | "rename" | "bulk" | "yank" => {
|
||||
Err("Cannot construct system event from Lua").into_lua_err()?
|
||||
}
|
||||
_ if !kind.bytes().all(|b| b.is_ascii_alphanumeric() || b == b'-') => {
|
||||
Err("Kind must be alphanumeric with dashes").into_lua_err()?
|
||||
}
|
||||
_ => BodyCustom::from_lua(kind, value)?,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue