From d4421225ea0cf4e47622981c322640549f88c2a4 Mon Sep 17 00:00:00 2001 From: Gnlow Date: Tue, 19 Dec 2023 16:38:45 +0900 Subject: [PATCH] impl: replace_string --- src/Entry.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Entry.ts b/src/Entry.ts index 304f64f..a9f79fe 100644 --- a/src/Entry.ts +++ b/src/Entry.ts @@ -562,6 +562,9 @@ export class Entry { index_of_string(where: string, what: string) { return where.indexOf(what) + 1 } + replace_string(where: string, from: string, to: string) { + return where.replaceAll(from, to) + } /* 자료 */ get_variable(id: string) {