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:
Juan Picado @jotadeveloper
2019-05-16 07:25:40 -07:00
committed by GitHub
parent 233ba196a0
commit 980dac5b2f
9 changed files with 144 additions and 82 deletions

View File

@@ -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;
}