Skip to content

Commit 9c0635e

Browse files
authored
fix: funbox plus x not working with custom text using pipe delimiter (@fehmer) (monkeytypegame#6155)
Fixes monkeytypegame#6151
1 parent 94c219e commit 9c0635e

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

frontend/src/ts/test/words-generator.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ export async function generateWords(
663663
const sectionFinishedAndOverLimit =
664664
currentSection.length === 0 &&
665665
sectionIndex >= CustomText.getLimitValue();
666-
if (sectionFinishedAndOverLimit || ret.words.length >= 100) {
666+
if (sectionFinishedAndOverLimit || ret.words.length >= limit) {
667667
stop = true;
668668
}
669669
} else if (ret.words.length >= limit) {

packages/funbox/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
"lint": "eslint \"./**/*.ts\""
1010
},
1111
"devDependencies": {
12-
"@monkeytype/util": "workspace:*",
1312
"@monkeytype/esbuild": "workspace:*",
1413
"@monkeytype/eslint-config": "workspace:*",
1514
"@monkeytype/typescript-config": "workspace:*",
@@ -20,6 +19,9 @@
2019
"typescript": "5.5.4",
2120
"vitest": "2.0.5"
2221
},
22+
"dependencies": {
23+
"@monkeytype/util": "workspace:*"
24+
},
2325
"exports": {
2426
".": {
2527
"types": "./src/index.ts",

pnpm-lock.yaml

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)