elninotech/uppload

View on GitHub
src/services/microlink/weheartit.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { MicrolinkBaseClass } from "../../helpers/microlink";

export default class WeHeartIt extends MicrolinkBaseClass {
  name = "weheartit";
  icon = `<svg aria-hidden="true" viewbox="0 0 256 256" xmlns="http://www.w3.org/2000/svg"><path d="M231 36c-18-16-40-23-64-13-12 5-24 11-34 20l-5 5-5-5c-10-8-20-15-31-20s-22-8-35-6C25 22-2 56 0 89l1 15c5 31 22 55 44 77a364 364 0 0083 59l5-3c23-13 45-28 65-45 21-20 40-41 51-68 13-34 8-66-18-88z" fill="#000" fill-rule="nonzero"/></svg>`;
  color = "#ff5464";
  exampleURL = "https://weheartit.com/entry/221671573";
  validator = (input: string) =>
    /(https?:\/\/(.+?\.)?weheartit\.com(\/[A-Za-z0-9\-\._~:\/\?#\[\]@!$&'\(\)\*\+,;\=]*)?)/.test(
      input
    );
}