fix: Add support for new clickup sharing links

This commit is contained in:
Tom Moor
2022-08-23 23:04:21 +02:00
parent f0cbbee4b8
commit 68f24fce21

View File

@@ -2,12 +2,13 @@ import * as React from "react";
import Frame from "../components/Frame";
import { EmbedProps as Props } from ".";
const URL_REGEX = new RegExp(
"^https?://share\\.clickup\\.com/[a-z]/[a-z]/(.*)/(.*)$"
);
export default class ClickUp extends React.Component<Props> {
static ENABLED = [URL_REGEX];
static ENABLED = [
new RegExp("^https?://share\\.clickup\\.com/[a-z]/[a-z]/(.*)/(.*)$"),
new RegExp(
"^https?://sharing\\.clickup\\.com/[0-9]+/[a-z]/[a-z]/(.*)/(.*)$"
),
];
render() {
return (