diff options
| author | Akshay Nair <phenax5@gmail.com> | 2022-02-17 22:11:46 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2022-02-17 22:11:46 +0530 |
| commit | fee592d96c914336aaf96376524b81cb59dc6083 (patch) | |
| tree | 98d52cc7ee69d0d96d0d0b5d33e72151f7b3db4e /src | |
| parent | 1a6d59b0efb4a79f4372a35163252f4d35bd5b7f (diff) | |
| download | elxr-fee592d96c914336aaf96376524b81cb59dc6083.tar.gz elxr-fee592d96c914336aaf96376524b81cb59dc6083.zip | |
v0.0.2v0.0.2
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)) |
