parent
e3d4c243b9
commit
c023c08310
2 changed files with 7 additions and 1 deletions
@ -0,0 +1,5 @@ |
||||
export const match = ( |
||||
value: string, |
||||
regexp: string | RegExp, |
||||
{ fallbackResult = [] }: { fallbackResult?: string[] } = {}, |
||||
) => value.match(regexp) ?? fallbackResult; |
Loading…
Reference in new issue