Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Fix case not changing when patching orgList #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/crawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ class Crawler {

_reconfigure(current, changes) {
// ensure the orgList is always lowercase
const orgList = changes.find(patch => patch.path === '/orgList');
const orgList = changes.find(patch => patch.path.includes('/orgList'));
if (orgList) {
debug('orgList changed');
this.options.orgList = orgList.value.map(element => element.toLowerCase());
this.options.orgList = this.options.orgList.map(element => element.toLowerCase());
}
}

Expand Down