diff --git a/src/backend/GoogleTaskService.ts b/src/backend/GoogleTaskService.ts index d5a82c7..10ca9de 100644 --- a/src/backend/GoogleTaskService.ts +++ b/src/backend/GoogleTaskService.ts @@ -78,7 +78,9 @@ export class GoogleTaskService { if (accountConfig.includedLists.length === 0) { return true; } - return accountConfig.includedLists.some((list) => listName.match(list)); + + const regExp = RegExp(listName, 'g'); + return accountConfig.includedLists.some((list) => regExp.exec(list)); } setTaskServiceWithCredentials(token: Token): void {