Search: Change smart search inhibitor to a backslash

This commit is contained in:
Samantaz Fox 2024-04-27 23:21:27 +02:00
parent 78c5ba93c7
commit 85deea5aca
No known key found for this signature in database
GPG key ID: F42821059186176E

View file

@ -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