ghcrawler icon indicating copy to clipboard operation
ghcrawler copied to clipboard

orgList is not remapped to lowercase when changing via PATCH route

Open k----n opened this issue 4 years ago • 0 comments

The problem lies here: https://github.com/microsoft/ghcrawler/blob/0ac110780f4e8ec915dfb47f55e55cccf80892d7/lib/crawler.js#L30-L37

The path is not only /orgList https://github.com/microsoft/ghcrawler/blob/0ac110780f4e8ec915dfb47f55e55cccf80892d7/lib/crawler.js#L32

When reassigning this.options.orgList, this.options.orgList.map(element => element.toLowerCase()) should be used and not orgList.value.map(element => element.toLowerCase()). https://github.com/microsoft/ghcrawler/blob/0ac110780f4e8ec915dfb47f55e55cccf80892d7/lib/crawler.js#L35

k----n avatar Mar 22 '20 04:03 k----n