ccgather 2.0.36 → 2.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -13
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -146,18 +146,7 @@ function _stripAnsi(str) {
|
|
|
146
146
|
}
|
|
147
147
|
function getDisplayWidth(str) {
|
|
148
148
|
const stripped = _stripAnsi(str);
|
|
149
|
-
|
|
150
|
-
const emojiRegex = /[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]|✦/gu;
|
|
151
|
-
const emojis = stripped.match(emojiRegex);
|
|
152
|
-
if (emojis) {
|
|
153
|
-
for (const emoji of emojis) {
|
|
154
|
-
const emojiWidth = (0, import_string_width.default)(emoji);
|
|
155
|
-
if (emojiWidth === 1) {
|
|
156
|
-
width += 1;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
return width;
|
|
149
|
+
return (0, import_string_width.default)(stripped);
|
|
161
150
|
}
|
|
162
151
|
function header(title, icon = "") {
|
|
163
152
|
const iconPart = icon ? `${icon} ` : "";
|
|
@@ -277,7 +266,7 @@ var init_ui = __esm({
|
|
|
277
266
|
"use strict";
|
|
278
267
|
import_chalk = __toESM(require("chalk"));
|
|
279
268
|
import_string_width = __toESM(require("string-width"));
|
|
280
|
-
VERSION = true ? "2.0.
|
|
269
|
+
VERSION = true ? "2.0.37" : "0.0.0";
|
|
281
270
|
colors = {
|
|
282
271
|
primary: import_chalk.default.hex("#DA7756"),
|
|
283
272
|
// Claude coral
|