forked from sombochea/verdaccio-ui
fix: verify validation url and email (#60)
* fix: verify validation url and email * chore: disable one expect * fix: lint issue * fix: fix lint
This commit is contained in:
committed by
GitHub
parent
233ba196a0
commit
980dac5b2f
@@ -10,6 +10,7 @@ import CopyToClipBoard from '../CopyToClipBoard';
|
||||
|
||||
import { Heading, GithubLink, RepositoryListItem } from './styles';
|
||||
import git from './img/git.png';
|
||||
import { isURL } from '../../utils/url';
|
||||
|
||||
class Repository extends Component<any, any> {
|
||||
render() {
|
||||
@@ -33,7 +34,7 @@ class Repository extends Component<any, any> {
|
||||
} = {},
|
||||
} = packageMeta.latest;
|
||||
|
||||
if (!url) {
|
||||
if (!url || isURL(url) === false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user