Test! EDIT

in #testt2226 years ago (edited)

Repository

e.g. https://github.com/utopian-io/utopian.io

EDIT

Details

Write details of the new/updated official documentation, highlighting all the important changes and additions made.

TEST

hjj

test

  • test1
  • test2
  • test3
  1. 1
  2. 2
  3. 3
/**
 * Extracts links from given string.
 * @param text A text to extract links from.
 * @returns An array of unique links.
 */
export const getLinks = (text: string): Array<string> => {
  const linksToImages = getImages(text);
  return pipe(
    match(
      // tslint:disable-next-line:max-line-length
      /(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9]\.[^\s]{2,})/g
    ),
    // if it's a markdown link, the last letter will be ')', it has to be removed
    map(link => (last(link) === ')' ? init(link) : link)),
    reject(contains(__, linksToImages)),
    uniq
  )(text);
};

Components

Describe the components/parts/sections of the software your documentation is about.

Difference

If you have updated existing documentation, describe what has been changed and the reasons behind it, as well as the impact this has on the project.

Links

Insert public links to the updated official documentation.

GitHub Proof of Authorship

SKIP