diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2024-04-27 23:21:27 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2024-08-17 19:22:40 +0200 |
| commit | 85deea5aca4877507bb8850e5e3e168d968328ad (patch) | |
| tree | 7d6730c0b0988eb3d6888e075474d9e1cf941a07 | |
| parent | 78c5ba93c7f4eecf7aae623079c0c77f78670b67 (diff) | |
| download | invidious-85deea5aca4877507bb8850e5e3e168d968328ad.tar.gz invidious-85deea5aca4877507bb8850e5e3e168d968328ad.tar.bz2 invidious-85deea5aca4877507bb8850e5e3e168d968328ad.zip | |
Search: Change smart search inhibitor to a backslash
| -rw-r--r-- | src/invidious/search/query.cr | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invidious/search/query.cr b/src/invidious/search/query.cr index b3db0f63..a93bb3f9 100644 --- a/src/invidious/search/query.cr +++ b/src/invidious/search/query.cr @@ -58,9 +58,9 @@ module Invidious::Search # Remove surrounding whitespaces. Mostly useful for copy/pasted URLs. @raw_query = _raw_query.strip - # Check for smart features (ex: URL search) inhibitor (exclamation mark). + # Check for smart features (ex: URL search) inhibitor (backslash). # If inhibitor is present, remove it. - if @raw_query.starts_with?('!') + if @raw_query.starts_with?('\\') @inhibit_ssf = true @raw_query = @raw_query[1..] end |
