Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbmatter committed Apr 26, 2024
1 parent ba51633 commit a380294
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/lib/namesBasketball.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from "lodash";
import { load } from "cheerio";
import fs from "node:fs";
import path from "node:path";
Expand Down Expand Up @@ -65,7 +64,7 @@ const namesBasketball = () => {
for (let i = 1; i < parts.length - 1; i++) {
const middle = parts.slice(i, parts.length - 1);
for (const middleWithLast of middlesWithLast) {
if (_.isEqual(middleWithLast, middle)) {
if (JSON.stringify(middleWithLast) === JSON.stringify(middle)) {
parts = parts.slice(0, i).concat(parts.slice(i).join(" "));
stop = true;
break;
Expand Down

0 comments on commit a380294

Please sign in to comment.