From cd722a0e7f37dada6b9c0fa575d3d2328bacc5cf Mon Sep 17 00:00:00 2001 From: Shaun Hamilton <51722130+ShaunSHamilton@users.noreply.github.com> Date: Mon, 15 Mar 2021 14:07:43 +0000 Subject: [PATCH] fix(client): change repl.it validation to replit for migration (#41457) --- client/src/components/formHelpers/FormValidators.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/components/formHelpers/FormValidators.js b/client/src/components/formHelpers/FormValidators.js index 05aa86f550..95d814caf0 100644 --- a/client/src/components/formHelpers/FormValidators.js +++ b/client/src/components/formHelpers/FormValidators.js @@ -1,8 +1,8 @@ import React from 'react'; import { Trans } from 'react-i18next'; -// Matches editor links for: Repl.it, Glitch, CodeSandbox, GitHub -const editorRegex = /repl\.it\/(@|join\/)|glitch\.com\/edit\/#!|codesandbox\.io\/s\/|github\.com/; +// Matches editor links for: Replit, Glitch, CodeSandbox, GitHub +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; const localhostRegex = /localhost:/; const httpRegex = /http(?!s|([^s]+?localhost))/;