From c621f19e3b064efdd224b90e02c2e9b328259028 Mon Sep 17 00:00:00 2001 From: Karishma Chadha <kchadha@scratch.mit.edu> Date: Fri, 23 Feb 2018 09:30:01 -0500 Subject: [PATCH] Making import modal input way more permissive. --- src/containers/import-modal.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/containers/import-modal.jsx b/src/containers/import-modal.jsx index 2c3c75128..eb131f731 100644 --- a/src/containers/import-modal.jsx +++ b/src/containers/import-modal.jsx @@ -50,8 +50,7 @@ class ImportModal extends React.Component { this.setState({inputValue: e.target.value, hasValidationError: false}); } validate (input) { - const urlMatches = input.match( - /^(https:\/\/)?scratch\.mit\.edu\/projects\/(\d+)(\/?|(\/#((editor)|(fullscreen)|(player)))?)$/); + const urlMatches = input.match(/^(https:\/\/)?scratch\.mit\.edu\/projects\/(\d+)/); if (urlMatches && urlMatches.length > 0) { return urlMatches[2]; } -- GitLab