From 7084a2e8061ac0bde92dc7852b2f99e376e82d51 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 16 Oct 2020 07:27:28 +0000 Subject: [PATCH] Format code with prettier This commit fixes the style issues introduced in 09e77f6 according to the output from prettier. Details: https://deepsource.io/gh/MillenniumEarl/F95API/transform/e2fd9379-502b-475d-aadb-687ced2e6f65/ --- app/scripts/game-scraper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scripts/game-scraper.js b/app/scripts/game-scraper.js index d19569d..02d125c 100644 --- a/app/scripts/game-scraper.js +++ b/app/scripts/game-scraper.js @@ -398,7 +398,8 @@ function extractGameHostingData(platform, text) { // Find the end of the container if (endIndex === -1) - endIndex = text.indexOf(CONTAINER_SPAN_CLOSE, startIndex) + + endIndex = + text.indexOf(CONTAINER_SPAN_CLOSE, startIndex) + CONTAINER_SPAN_CLOSE.length; text = text.substring(startIndex, endIndex);