ucsb-cs56-w20 / mapache-search

https://mapache-search-qa.herokuapp.com/
2 stars 3 forks source link

Fixed stack exchange bug #171

Closed darraghjburke closed 4 years ago

darraghjburke commented 4 years ago

Fixed the bug where certain searches, like "python" or "loop", crashed Mapache Search. The issue: we were assuming any StackExchange link of the form "/questions/..." was a question, and trying to parse the ID from the url. But some links are of the form "/questions/tagged/python", which is actually not a question at all but a category. The fix was to stop treatting links which don't contain a number after the "/questions/" as StackExchange questions