@visulima/string 1.0.3 → 1.0.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## @visulima/string [1.0.4](https://github.com/visulima/visulima/compare/@visulima/string@1.0.3...@visulima/string@1.0.4) (2025-05-01)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **string:** enhance handling of box-drawing characters in string width calculations ([6d1d83a](https://github.com/visulima/visulima/commit/6d1d83a6823d90f9104363a91e8add7e0557fc27))
6
+
1
7
  ## @visulima/string [1.0.3](https://github.com/visulima/visulima/compare/@visulima/string@1.0.2...@visulima/string@1.0.3) (2025-04-29)
2
8
 
3
9
  ### Bug Fixes
@@ -71,6 +71,9 @@ const getCharType = /* @__PURE__ */ __name((codePoint) => {
71
71
  if (codePoint >= 160 && codePoint <= 255) {
72
72
  return "latin";
73
73
  }
74
+ if (codePoint >= 9472 && codePoint <= 9599) {
75
+ return "latin";
76
+ }
74
77
  if (codePoint >= 4352 && codePoint <= 4607 || // Hangul Jamo
75
78
  codePoint >= 11904 && codePoint <= 40959 || // CJK & radicals
76
79
  codePoint >= 44032 && codePoint <= 55215 || // Hangul Syllables
@@ -67,6 +67,9 @@ const getCharType = /* @__PURE__ */ __name((codePoint) => {
67
67
  if (codePoint >= 160 && codePoint <= 255) {
68
68
  return "latin";
69
69
  }
70
+ if (codePoint >= 9472 && codePoint <= 9599) {
71
+ return "latin";
72
+ }
70
73
  if (codePoint >= 4352 && codePoint <= 4607 || // Hangul Jamo
71
74
  codePoint >= 11904 && codePoint <= 40959 || // CJK & radicals
72
75
  codePoint >= 44032 && codePoint <= 55215 || // Hangul Syllables
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/string",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Functions for manipulating strings.",
5
5
  "keywords": [
6
6
  "visulima",