12

How do I escape the > so I can search for all instances of -> in a github repository?

I have attempted using "->" but that still sees the > as an operator. Is there an escape character I can add so that the search will work?

CookieOfFortune
  • 13,470
  • 8
  • 38
  • 57

1 Answers1

2

GitHub search is based on elasticsearch, which has reserved characters than you can escape.

'>' and '<' are optional operators used for intervals, and it doesn't seem for that character to be escaped (in the way GitHub is using or has configured ealasticsearch).

Community
  • 1
  • 1
VonC
  • 1,129,465
  • 480
  • 4,036
  • 4,755