Travis build: 732 [ci skip]

This commit is contained in:
Travis CI
2017-12-31 13:15:55 +00:00
parent b9386f27c2
commit 2096316c55
4 changed files with 36 additions and 7 deletions

View File

@ -5,7 +5,7 @@ Returns `true` if the given string is an absolute URL, `false` otherwise.
Use a regular expression to test if the string is an absolute URL.
```js
const isAbsoluteURL = str => /^[a-z][a-z0-9+.-]*:/.test(str);
const isAbsoluteURL = str => /^[a-z][a-z0-9+.-]*:/.test(str);
```
```js

View File

@ -9,7 +9,7 @@ const isValidJSON = obj => {
try {
JSON.parse(obj);
return !!obj;
} catch (e) {
} catch (e) {
return false;
}
};