Skip to content

Commit 45c0489

Browse files
committed
fix: 正则匹配错误
1 parent 2a67779 commit 45c0489

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pub fn ls() {
4343
eprintln!("[CAM ERROR]: {}", err);
4444
process::exit(1);
4545
});
46-
let reg = Regex::new(r"alias ([0-9a-zA-Z_]*)='([0-9a-zA-Z_ :$#@*><]*)/|\'").unwrap();
46+
let reg = Regex::new(r"alias ([0-9a-zA-Z_]*)='([0-9a-zA-Z_ :$#@*><]*)'").unwrap();
4747
println!("");
4848
for caps in reg.captures_iter(file_content.as_str()) {
4949
println!(

0 commit comments

Comments
 (0)