Using Github API code search, find the exact string `throw "` -


i want find exact strings, throw ' , throw " in javascript files in given repo using github api.

it says:

you can't use following wildcard characters part of search query: . , : ; / \ ` ' " = * ! ? # $ & + ^ | ~ < > ( ) { } [ ]. search ignore these symbols.

i'm supposing there no way find these exact strings using api?

i have tried various searches no luck. trying escape " \ doesn't work either.

https://api.github.com/search/code?q=%22throw+%27%22+in:file+language:js+repo:angular/angular.js

all of queries try return, instance, https://github.com/angular/angular.js/blob/master/docs/config/tag-defs/tutorial-step.js finds throw , disregards '.

an alternative strategy find there not error on line, search throw not error try find throwing string , not throw new error(. strategy doesn't work reason. instance,

https://api.github.com/search/code?q=%22throw%20not%20error%22+in:file+language:js+repo:driverdan/node-xmlhttprequest

there many times plain string thrown in https://github.com/driverdan/node-xmlhttprequest/blob/master/lib/xmlhttprequest.js but, file contain string error; so, guess enough make result empty. i'm seeing way "search" in client program workaround; but, rather results api.

i'm supposing there no way find these exact strings using api?

correct, that's not possible currently.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -