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,836
  • 8
  • 42
  • 58

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,262,500
  • 529
  • 4,410
  • 5,250