Skip to content

Commit

Permalink
enable emojis in post NFTs
Browse files Browse the repository at this point in the history
  • Loading branch information
tempe-techie committed Oct 8, 2023
1 parent fd95afb commit 5c80ad7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/minted-posts/IggyPostMint.vue
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,14 @@ export default {
});
if (sanitizedText.length > 183) {
this.textPreview = sanitizedText.replace(/[^\x00-\x7F]/g, "").substring(0, 180) + "...";
//this.textPreview = sanitizedText.replace(/[^\x00-\x7F]/g, "").substring(0, 180) + "..."; // uncomment if you want to remove non-ascii characters (e.g. emojis)
this.textPreview = sanitizedText.substring(0, 180) + "...";
console.log(this.textPreview);
} else if (sanitizedText.length === 0) {
this.textPreview = "";
} else {
this.textPreview = sanitizedText.replace(/[^\x00-\x7F]/g, "");
//this.textPreview = sanitizedText.replace(/[^\x00-\x7F]/g, ""); // uncomment if you want to remove non-ascii characters (e.g. emojis)
this.textPreview = sanitizedText;
}
if (textLengthWithoutBlankCharacters(sanitizedText) === 0) {
Expand Down

1 comment on commit 5c80ad7

@vercel
Copy link

@vercel vercel bot commented on 5c80ad7 Oct 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.