mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-18 19:01:38 +03:00
added support for heic image links in meta
This commit is contained in:
parent
a06dd94442
commit
c234d7be47
@ -132,7 +132,7 @@ export const makeJsonMetadataForUpdate = (oldJson, meta, tags) => {
|
||||
export const extractMetadata = (body) => {
|
||||
const urlReg = /(\b(https?|ftp):\/\/[A-Z0-9+&@#/%?=~_|!:,.;-]*[-A-Z0-9+&@#/%=~_|])/gim;
|
||||
const userReg = /(^|\s)(@[a-z][-.a-z\d]+[a-z\d])/gim;
|
||||
const imgReg = /(https?:\/\/.*\.(?:png|jpg|jpeg|gif))/gim;
|
||||
const imgReg = /(https?:\/\/.*\.(?:png|jpg|jpeg|gif|heic))/gim;
|
||||
|
||||
const out = {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user