Skip to content

Commit 94a8aba

Browse files
committed
fix: Remove escape-regex on all packages except adapter-utils
1 parent af9f3ef commit 94a8aba

File tree

5 files changed

+6
-2946
lines changed

5 files changed

+6
-2946
lines changed

packages/adapter-flat-file-db/index.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ function init(options) {
1515
// This is here for backwards compatability should be removed at some point
1616
init({ dbName: process.env.DB_NAME });
1717

18-
const keyRegex = str => {
19-
str = str.split('*').map(s => escapeRegexp(s)).join('*');
20-
return new RegExp('^' + str.replace('*', '.*'));
21-
};
22-
2318
let handlers = [];
2419

2520
const observable = new Observable(observer => {

packages/adapter-flat-file-db/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
},
2121
"author": "Max Stoiber <[email protected]> (http://mxstbr.com/)",
2222
"dependencies": {
23-
"escape-regex": "^1.0.7",
2423
"flat-file-db": "^1.0.0",
2524
"then-flat-file-db": "^1.0.0",
2625
"zen-observable": "^0.4.0"

0 commit comments

Comments
 (0)