Refactor: simplify word navigation logic, improve line wrapping, and enhance parameter initialization across core and TUI modules.
This commit is contained in:
@@ -106,13 +106,11 @@ impl Router {
|
||||
return true;
|
||||
}
|
||||
|
||||
if pattern.ends_with('*') {
|
||||
let prefix = &pattern[..pattern.len() - 1];
|
||||
if let Some(prefix) = pattern.strip_suffix('*') {
|
||||
return model.starts_with(prefix);
|
||||
}
|
||||
|
||||
if pattern.starts_with('*') {
|
||||
let suffix = &pattern[1..];
|
||||
if let Some(suffix) = pattern.strip_prefix('*') {
|
||||
return model.ends_with(suffix);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user