Skip to content

Commit

Permalink
Add backslash to invalid characters for URL regex
Browse files Browse the repository at this point in the history
  • Loading branch information
raphamorim committed Feb 6, 2025
1 parent 5d1c94f commit 16ce613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rio-backend/src/crosswords/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ impl<U: EventListener> Crosswords<U> {
let colors = List::from(&Colors::default());
// Regex used for the default URL hint.
let url_regex: &str = "(ipfs:|ipns:|magnet:|mailto:|gemini://|gopher://|https://|http://|news:|file:|git://|ssh:|ftp://)\
[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>\"\\s{-}\\^⟨⟩`]+";
[^\u{0000}-\u{001F}\u{007F}-\u{009F}<>\"\\s{-}\\^⟨⟩`\\\\]+";

Crosswords {
vi_mode_cursor: ViModeCursor::new(grid.cursor.pos),
Expand Down

0 comments on commit 16ce613

Please sign in to comment.