From d92f30c5a2a296a69784c7e4e7b897657da2d5d2 Mon Sep 17 00:00:00 2001 From: Pachara Chantawong Date: Thu, 13 May 2021 20:45:29 +0700 Subject: [PATCH] Fix eslint quotemark --- src/lib/getPossibles.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; });