From 16c069be892495e3f6f1e212bdae5ea380f37132 Mon Sep 17 00:00:00 2001
From: Karishma Chadha <kchadha@scratch.mit.edu>
Date: Fri, 23 Feb 2018 09:00:44 -0500
Subject: [PATCH] Allow #fullscreen and #player links in modal.

---
 src/containers/import-modal.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/containers/import-modal.jsx b/src/containers/import-modal.jsx
index 6bc667440..2a18b433f 100644
--- a/src/containers/import-modal.jsx
+++ b/src/containers/import-modal.jsx
@@ -50,7 +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)?)$/);
+        const urlMatches = input.match(/^(https:\/\/)?scratch\.mit\.edu\/projects\/(\d+)(\/?|(\/#((editor)|(fullscreen)|(player)))?)$/);
         if (urlMatches && urlMatches.length > 0) {
             return urlMatches[2];
         }
-- 
GitLab