Skip to content

Commit

Permalink
fix: Fix quote replacement
Browse files Browse the repository at this point in the history
  • Loading branch information
ysthakur committed Mar 19, 2024
1 parent 21becbe commit fababe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/parse_man/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub fn remove_groff_formatting(data: &str) -> String {
// .replace(".I", "") // This breaks podman since it removes .IX
.replace('\u{C}', "");

let quotes = Regex::new(r"\([ocadlr]q").unwrap();
let quotes = Regex::new(r"\\\([ocadlr]q").unwrap();
let data = quotes.replace_all(&data, "'");

let data = data.replace(".Pp", ""); // Fish only replaces this one on MacOS
Expand Down
Loading

0 comments on commit fababe1

Please sign in to comment.