Merge pull request #13 from MillenniumEarl/deepsource-transform-5010fc48

Format code with prettier
pull/14/head
Millennium Earl 2020-10-10 14:05:32 +02:00 committed by GitHub
commit eb2e3746d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 3 deletions

View File

@ -7,7 +7,11 @@ const fs = require("fs");
const shared = require("./scripts/shared.js"); const shared = require("./scripts/shared.js");
const constURLs = require("./scripts/constants/urls.js"); const constURLs = require("./scripts/constants/urls.js");
const selectors = require("./scripts/constants/css-selectors.js"); const selectors = require("./scripts/constants/css-selectors.js");
const { isStringAValidURL, urlExists, isF95URL } = require("./scripts/urls-helper.js"); const {
isStringAValidURL,
urlExists,
isF95URL,
} = require("./scripts/urls-helper.js");
const gameScraper = require("./scripts/game-scraper.js"); const gameScraper = require("./scripts/game-scraper.js");
const { const {
prepareBrowser, prepareBrowser,
@ -252,7 +256,7 @@ module.exports.getGameDataFromURL = async function (url) {
} }
// Check URL // Check URL
if(!urlExists(url)) return null; if (!urlExists(url)) return null;
if (!isF95URL(url)) throw url + " is not a valid F95Zone URL"; if (!isF95URL(url)) throw url + " is not a valid F95Zone URL";
// Gets the search results of the game being searched for // Gets the search results of the game being searched for