mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-10-18 14:13:21 +00:00
img regex fix
This commit is contained in:
parent
f9e5c60f5a
commit
eb6fa247c9
@ -7,7 +7,7 @@ import SafeImg from '../SafeImg';
|
||||
import Embed from './index';
|
||||
|
||||
const Image: Embed = {
|
||||
regex: /(https?:\/\/.*\.(?:png|jpg|jpeg|gif|svg|webp)(?:\?\S*)?)/gi,
|
||||
regex: /(https?:\/\/.*?\.(?:png|jpg|jpeg|gif|svg|webp)(?:\?\S*?)?)/gi,
|
||||
settingsKey: 'enableImages',
|
||||
component: ({ match }) => {
|
||||
const [showModal, setShowModal] = useState(false);
|
||||
|
Loading…
Reference in New Issue
Block a user