Skip to content
Snippets Groups Projects
Commit 16c069be authored by Karishma Chadha's avatar Karishma Chadha
Browse files

Allow #fullscreen and #player links in modal.

parent 28666d1c
No related branches found
No related tags found
No related merge requests found
......@@ -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];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment