From 8f83c91aaabffa1e1ff3386b591e5a5642e4eade Mon Sep 17 00:00:00 2001 From: Mikkel Vester Petersen Date: Thu, 24 Oct 2019 15:12:09 +0200 Subject: [PATCH] Fix typo --- src/locations.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locations.js b/src/locations.js index 9b25323..913c40d 100644 --- a/src/locations.js +++ b/src/locations.js @@ -221,7 +221,7 @@ class Locations { var completed = new defer(); var locations = this.parseWords(contents, section, wordCount, startCfi); var remainingCount = count - this._locationsWords.length; - this._locationsWords = this._locationsWords.concat(locations.length <= count ? locations.slice(0, remainingCount) : locations); + this._locationsWords = this._locationsWords.concat(locations.length >= count ? locations.slice(0, remainingCount) : locations); section.unload();