如何在 github 中搜索 && 作为原始文本
How to search for && as raw text in github
我想在 github 存储库中搜索代码,其中包含如下行:
echo a && echo b
我正在尝试在该存储库中搜索 &&
,但我收到一条错误消息:
We could not perform this search
The search contains only logical
operators (AND / OR / NOT) without any search terms.
我无法逃脱这些符号。 \&\&
、'&&'
和 "&&"
.
均未找到匹配项
我如何执行该搜索?
自 my previous answer, the GitHub help page has been updated.
似乎不可能:
You can't use the following wildcard characters as part of your search query:
. , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ].
The search will simply ignore these symbols.
所以转义 (\&
) 甚至 &
都不起作用,因为它们包含被搜索查询忽略的符号。
我想在 github 存储库中搜索代码,其中包含如下行:
echo a && echo b
我正在尝试在该存储库中搜索 &&
,但我收到一条错误消息:
We could not perform this search
The search contains only logical operators (AND / OR / NOT) without any search terms.
我无法逃脱这些符号。 \&\&
、'&&'
和 "&&"
.
我如何执行该搜索?
自 my previous answer, the GitHub help page has been updated.
似乎不可能:
You can't use the following wildcard characters as part of your search query:
. , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ].
The search will simply ignore these symbols.
所以转义 (\&
) 甚至 &
都不起作用,因为它们包含被搜索查询忽略的符号。