fix: funbox plus x not working with custom text using pipe delimiter (@fehmer) (#6155)

Fixes #6151
This commit is contained in:
Christian Fehmer 2025-01-06 12:07:47 +01:00 committed by GitHub
parent 94c219efb7
commit 9c0635ea68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 5 deletions

View file

@ -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) {

View file

@ -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
View file

@ -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