From 2490dd39ebf7ad6aeb296d9af581d4a0e6a30011 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 23 Sep 2024 11:54:58 +0800 Subject: [PATCH] feat(sample): more code line --- packages/sample/package.json | 2 +- packages/sample/src/lib/picker.mjs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/sample/package.json b/packages/sample/package.json index ff2fa09..3ad51c8 100644 --- a/packages/sample/package.json +++ b/packages/sample/package.json @@ -1,6 +1,6 @@ { "name": "@bring-it/sample", - "version": "0.4.20", + "version": "0.4.22", "description": "Generate code sample files", "license": "MIT", "author": { diff --git a/packages/sample/src/lib/picker.mjs b/packages/sample/src/lib/picker.mjs index 21220d3..b416d6b 100644 --- a/packages/sample/src/lib/picker.mjs +++ b/packages/sample/src/lib/picker.mjs @@ -45,7 +45,7 @@ async function mapper(io, key, lists) { if (LINE_NUMBERS > io.length()) { await readLine(file) .then((lines) => { - io.get(key).push(...lines.slice(0, LINE_NUMBERS - io.length())); + io.get(key).push(...lines); logger.okay(file.name); })