diff --git a/src/lib/getPossibles.ts b/src/lib/getPossibles.ts index 1c463a5..0d5aca8 100644 --- a/src/lib/getPossibles.ts +++ b/src/lib/getPossibles.ts @@ -15,7 +15,7 @@ function getPossibles(dataSource: ReadonlyArray, 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; });