feat: start nemesis #1227
@ -2,7 +2,7 @@ import { JSONParse } from "json-with-bigint";
|
|||||||
|
|
||||||
export const getJSONfromString = <T>(str: string): T => {
|
export const getJSONfromString = <T>(str: string): T => {
|
||||||
const jsonSubstring = str.substring(0, str.lastIndexOf("}") + 1);
|
const jsonSubstring = str.substring(0, str.lastIndexOf("}") + 1);
|
||||||
return JSONParse(jsonSubstring) as T;
|
return JSONParse<T>(jsonSubstring);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const getSubstringFromKeyword = (str: string, keyword: string): string => {
|
export const getSubstringFromKeyword = (str: string, keyword: string): string => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user