Skip to content

Commit

Permalink
Search: Change smart search inhibitor to a backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
SamantazFox committed Apr 27, 2024
1 parent 441ea89 commit d3bff46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/invidious/search/query.cr
Expand Up @@ -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
Expand Down

0 comments on commit d3bff46

Please sign in to comment.