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.
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,
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
Post a Comment