10 lines
266 B
TypeScript
10 lines
266 B
TypeScript
import useConfigStore from "@/store/config";
|
|
|
|
export function useContentFix(content?: string | null) {
|
|
const s3Url = useConfigStore((store) => store.s3Url);
|
|
return content?.replace(
|
|
/https?:\/\/(?:minio-hdd)\.yoshino-s\.(?:online|xyz)\//g,
|
|
s3Url,
|
|
);
|
|
}
|