From 2e947fbdda8fe1f4815dcdc2ef45f8a779fa8134 Mon Sep 17 00:00:00 2001 From: Lio Young Date: Thu, 8 Apr 2021 22:12:23 +0200 Subject: [PATCH] replace function for lingua --- src/utils/replace.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/utils/replace.ts diff --git a/src/utils/replace.ts b/src/utils/replace.ts new file mode 100644 index 0000000..ff0813c --- /dev/null +++ b/src/utils/replace.ts @@ -0,0 +1,4 @@ +export default function replace(to_replace: string, replace_with: string, full_string: string) { + + return full_string.replace(to_replace, replace_with) +} \ No newline at end of file