fix: bug
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
import { useAppSelector } from "@/store";
|
import { useAppSelector } from "@/store";
|
||||||
|
|
||||||
export function useContextFix(content: string) {
|
export function useContextFix(content?: string) {
|
||||||
const { s3Url } = useAppSelector((state) => state.options);
|
const { s3Url } = useAppSelector((state) => state.options);
|
||||||
return content.replace(
|
return content?.replace(
|
||||||
/https?:\/\/(?:minio-hdd)\.yoshino-s\.(?:online|xyz)\//g,
|
/https?:\/\/(?:minio-hdd)\.yoshino-s\.(?:online|xyz)\//g,
|
||||||
s3Url,
|
s3Url,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user