Merge pull request #5180 from litmus-ritten/master

landscape: altered RemoteContent regexes for images, video, and audio to include period literal.
This commit is contained in:
Liam Fitzgerald 2021-08-24 15:46:34 +10:00 committed by GitHub
commit 7e70d529f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,10 +38,10 @@ export interface RemoteContentProps {
}
export const IMAGE_REGEX = new RegExp(
/(jpg|img|png|gif|tiff|jpeg|webp|webm|svg)$/i
/(\.jpg|\.img|\.png|\.gif|\.tiff|\.jpeg|\.webp|\.webm|\.svg)$/i
);
export const AUDIO_REGEX = new RegExp(/(mp3|wav|ogg|m4a)$/i);
export const VIDEO_REGEX = new RegExp(/(mov|mp4|ogv)$/i);
export const AUDIO_REGEX = new RegExp(/(\.mp3|\.wav|\.ogg|\.m4a)$/i);
export const VIDEO_REGEX = new RegExp(/(\.mov|\.mp4|\.ogv)$/i);
const emptyRef = () => {};
export function RemoteContent(props: RemoteContentProps) {