mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-16 18:03:14 +03:00
added array length check, added podfile.lock in .gitignore
This commit is contained in:
parent
929df786b2
commit
776ae89d57
1
.gitignore
vendored
1
.gitignore
vendored
@ -68,3 +68,4 @@ package-lock.json
|
||||
my-release-key.keystore
|
||||
gradle.properties
|
||||
ios/Ecency.xcworkspace/xcuserdata/f.xcuserdatad/UserInterfaceState.xcuserstate
|
||||
ios/Podfile.lock
|
||||
|
@ -221,7 +221,8 @@ export const extractMetadata = (body: string, thumbUrl?: string) => {
|
||||
const mUrls = extractUrls(body);
|
||||
const mUsers = body && body.match(userReg);
|
||||
|
||||
const matchedImages = extractImageUrls({urls:mUrls}).filter((element,index) => index < 10); //filter only first 10 images
|
||||
const extractedImages = extractImageUrls({urls:mUrls});
|
||||
const matchedImages = extractedImages.length ? extractedImages.filter((element,index) => index < 10) : []; //filter only first 10 images
|
||||
const matchedLinks = [];
|
||||
const matchedUsers = [];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user