onClick={linkEvent(this, this.handleImageExpandClick)}
>
{this.imgThumbnail()}
- <svg class="icon rounded link-overlay hover-link">
+ <svg class="icon thumbnail rounded link-overlay hover-link">
<use xlinkHref="#icon-image"></use>
</svg>
</span>
title={this.state.url}
>
{this.imgThumbnail()}
- <svg class="icon rounded link-overlay hover-link">
+ <svg class="icon thumbnail rounded link-overlay hover-link">
<use xlinkHref="#icon-external-link"></use>
</svg>
</a>
return modIds.includes(creator_id);
}
-var imageRegex = new RegExp(
- `(http)?s?:?(\/\/[^"']*\.(?:png|jpg|jpeg|gif|png|svg))`
+const imageRegex = new RegExp(
+ /(http)?s?:?(\/\/[^"']*\.(?:jpg|jpeg|gif|png|svg))/
);
-var videoRegex = new RegExp(`(http)?s?:?(\/\/[^"']*\.(?:mp4))`);
+const videoRegex = new RegExp(`(http)?s?:?(\/\/[^"']*\.(?:mp4))`);
export function isImage(url: string) {
return imageRegex.test(url);