diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/index.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/index.ts b/src/index.ts index 1a52c95..64a0b6a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -8,7 +8,7 @@ import { index, ListExpr } from './types' const toSourceString = (r: string | RegExp): string => typeof r === 'string' ? r : r.source -export const liexp: (r: string | RegExp) => ListExpr = flow( +const elxr: (r: string | RegExp) => ListExpr = flow( toSourceString, parser, Either.map(fst), @@ -18,7 +18,7 @@ export const liexp: (r: string | RegExp) => ListExpr = flow( ) export const matchAll = <T>(exp: string | RegExp, list: T[]) => - pipe(exp, liexp, lxp => ev.matchAll(lxp, list)) + pipe(exp, elxr, lxp => ev.matchAll(lxp, list)) export const replaceAll = <T>(exp: string | RegExp, replacer: (v: T, m: ev.MatchGroupIndexed<T>, i: index) => T[], list: T[]) => - pipe(exp, liexp, lxp => ev.replaceAll(lxp, replacer, list)) + pipe(exp, elxr, lxp => ev.replaceAll(lxp, replacer, list)) |
