mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-09 15:02:14 +05:30
Search: Change smart search inhibitor to a backslash
This commit is contained in:
parent
78c5ba93c7
commit
85deea5aca
@ -58,9 +58,9 @@ module Invidious::Search
|
|||||||
# Remove surrounding whitespaces. Mostly useful for copy/pasted URLs.
|
# Remove surrounding whitespaces. Mostly useful for copy/pasted URLs.
|
||||||
@raw_query = _raw_query.strip
|
@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 inhibitor is present, remove it.
|
||||||
if @raw_query.starts_with?('!')
|
if @raw_query.starts_with?('\\')
|
||||||
@inhibit_ssf = true
|
@inhibit_ssf = true
|
||||||
@raw_query = @raw_query[1..]
|
@raw_query = @raw_query[1..]
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user