Skip to content

Commit

Permalink
Fix eslint quotemark
Browse files Browse the repository at this point in the history
  • Loading branch information
yukikwi committed May 13, 2021
1 parent 78a8db5 commit d92f30c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/getPossibles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function getPossibles(dataSource: ReadonlyArray<AddressEntry>, target: Target, q
const newDataSource = dataSource.slice(0); // Prevent mutate the original data source. Clone it!

const key = translateTarget(target);
const pattern = new RegExp(`^${query.replace(/([.?*+^$[\]\\(){}|-])/g, "\\$1")}`);
const pattern = new RegExp(`^${query.replace(/([.?*+^$[\]\\(){}|-])/g, '\\$1')}`);
const possibles: AddressEntry[] = newDataSource.filter(item => {
return item[key] ? pattern.test(`${item[key]}`) : false;
});
Expand Down

0 comments on commit d92f30c

Please sign in to comment.