pub const fn check_mikrotik_command(cmd: &str) -> &strExpand description
A minimal const validator that enforces some basic MikroTik command rules:
- Must start with
/. - No empty segments (no
//). - Only allows [a-zA-Z0-9_-] plus space or slash as separators.
- No consecutive spaces or slashes.
Panics at compile time if invalid.