Skip to content

Commit cd80ab7

Browse files
authored
Merge pull request #63 from stefanv/flexible-remote-parse
Be more flexible in how we identify a job as remote
2 parents cf37b5a + 6b0f9af commit cd80ab7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/filter-jobs.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const filterJobs = (jobs, filter) => {
1515
}
1616

1717
if (filter.remote) {
18-
jobs = jobs.filter((job) => (job.location || 'remote').toLowerCase() === 'remote' );
18+
// Matches "remote", "Remote (US)", "London / Remote", etc.
19+
jobs = jobs.filter((job) =>
20+
(job.location || "remote").toLowerCase().includes("remote")
21+
);
1922
}
2023

2124
return jobs;

0 commit comments

Comments
 (0)