Skip to content

Commit 7c11fcd

Browse files
authored
Merge pull request #34 from litencatt/improve-ascii-title-matching
Update title search to be case-insensitive
2 parents ad8f0e7 + 6932b8a commit 7c11fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/notion.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ export const getPageUrls = async (
387387
}
388388
const title = getPageTitle(page)
389389
// Extract only matched title when search_title is specified
390-
if (search_title && title.indexOf(search_title) == -1) {
390+
if (search_title && title.toLowerCase().indexOf(search_title.toLocaleLowerCase()) == -1) {
391391
continue
392392
}
393393
urls.push(`・ <${page.url}|${title}>`)

0 commit comments

Comments
 (0)