1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Clarify case-insensitivity for code search (#31874)

Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
This commit is contained in:
Josh Soref
2024-03-22 12:51:43 -04:00
committed by GitHub
parent 6bf54a0d81
commit 138b81bcc7

View File

@@ -323,3 +323,7 @@ printf("hello world\n");
Code search will give up on interpreting the parentheses and quotes as special characters and will instead search for files containing that exact code.
If code search guesses wrong, you can always get the search you wanted by using quotes and spaces to make the meaning clear.
## Case sensitivity
Code search is case-insensitive. Searching for `True` will include results for _uppercase_ `TRUE` and _lowercase_ `true`. You cannot do case-sensitive searches. Regular expression searches (e.g. for `[t][H][i][S]`) are also case-insensitive, and thus would return `This`, `THIS` and `this` in addition to any instances of `tHiS`.