mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
fix: funbox plus x not working with custom text using pipe delimiter (@fehmer) (#6155)
Fixes #6151
This commit is contained in:
parent
94c219efb7
commit
9c0635ea68
3 changed files with 8 additions and 5 deletions
|
|
@ -663,7 +663,7 @@ export async function generateWords(
|
|||
const sectionFinishedAndOverLimit =
|
||||
currentSection.length === 0 &&
|
||||
sectionIndex >= CustomText.getLimitValue();
|
||||
if (sectionFinishedAndOverLimit || ret.words.length >= 100) {
|
||||
if (sectionFinishedAndOverLimit || ret.words.length >= limit) {
|
||||
stop = true;
|
||||
}
|
||||
} else if (ret.words.length >= limit) {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,6 @@
|
|||
"lint": "eslint \"./**/*.ts\""
|
||||
},
|
||||
"devDependencies": {
|
||||
"@monkeytype/util": "workspace:*",
|
||||
"@monkeytype/esbuild": "workspace:*",
|
||||
"@monkeytype/eslint-config": "workspace:*",
|
||||
"@monkeytype/typescript-config": "workspace:*",
|
||||
|
|
@ -20,6 +19,9 @@
|
|||
"typescript": "5.5.4",
|
||||
"vitest": "2.0.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@monkeytype/util": "workspace:*"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
|
|
|
|||
7
pnpm-lock.yaml
generated
7
pnpm-lock.yaml
generated
|
|
@ -529,6 +529,10 @@ importers:
|
|||
version: 1.1.9
|
||||
|
||||
packages/funbox:
|
||||
dependencies:
|
||||
'@monkeytype/util':
|
||||
specifier: workspace:*
|
||||
version: link:../util
|
||||
devDependencies:
|
||||
'@monkeytype/esbuild':
|
||||
specifier: workspace:*
|
||||
|
|
@ -539,9 +543,6 @@ importers:
|
|||
'@monkeytype/typescript-config':
|
||||
specifier: workspace:*
|
||||
version: link:../typescript-config
|
||||
'@monkeytype/util':
|
||||
specifier: workspace:*
|
||||
version: link:../util
|
||||
chokidar:
|
||||
specifier: 3.6.0
|
||||
version: 3.6.0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue