Skip to content

Commit acb4efc

Browse files
authored
Merge pull request #1790 from AletheiaFact/hot-fix-url-pattern-regex
Hot Fix by adding pt on url pattern regex to allow sources from Portugal
2 parents 737b701 + 74409db commit acb4efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Collaborative/hooks/useFloatingLinkState.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import useLinkShortcut from "./useLinkShortcut";
2020
import { uniqueId } from "remirror";
2121

2222
export const URL_PATTERN =
23-
/^(ftp|http|https):\/\/[^ "]+\.(br|com|org|net|edu|gov|mil|co|info|io|biz|us|uk)(\/|\?|#|$)/;
23+
/^(ftp|http|https):\/\/[^ "]+\.(br|com|org|net|edu|gov|mil|co|info|io|biz|us|uk|pt)(\/|\?|#|$)/;
2424

2525
function useFloatingLinkState() {
2626
const { t } = useTranslation();

0 commit comments

Comments
 (0)