feat(client): match .freecodecamp.org for submissions (#45386)

This commit is contained in:
Shaun Hamilton
2022-03-09 08:56:09 +00:00
committed by GitHub
parent c19978a0fb
commit 8b3f3251b4

View File

@ -5,7 +5,7 @@ import { Trans } from 'react-i18next';
const editorRegex =
/repl\.?it(\.com)?\/(@|join\/)|glitch\.com\/edit\/#!|codesandbox\.io\/s\/|github\.com/;
const fCCRegex =
/codepen\.io\/freecodecamp|freecodecamp\.rocks|github\.com\/freecodecamp/i;
/codepen\.io\/freecodecamp|freecodecamp\.rocks|github\.com\/freecodecamp|\.freecodecamp\.org/i;
const localhostRegex = /localhost:/;
const httpRegex = /http(?!s|([^s]+?localhost))/;