diff --git a/src/containers/import-modal.jsx b/src/containers/import-modal.jsx index 2a18b433f42fd6a1d9c2d008fadfb241d6433978..2c3c75128578b207aaf552bdcdfe454573ee0c39 100644 --- a/src/containers/import-modal.jsx +++ b/src/containers/import-modal.jsx @@ -50,7 +50,8 @@ 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+)(\/?|(\/#((editor)|(fullscreen)|(player)))?)$/); if (urlMatches && urlMatches.length > 0) { return urlMatches[2]; }