spoko-design-system 1.1.6 → 1.1.7

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
+ ## [1.1.7](https://github.com/polo-blue/sds/compare/v1.1.6...v1.1.7) (2025-09-23)
2
+
3
+ ### Bug Fixes
4
+
5
+ * remove unnecessary escape characters in text.ts ([f1ae714](https://github.com/polo-blue/sds/commit/f1ae7145d86a7b4df1976ba850650fc390624667))
6
+
1
7
  ## [1.1.6](https://github.com/polo-blue/sds/compare/v1.1.5...v1.1.6) (2025-09-23)
2
8
 
3
9
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spoko-design-system",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "private": false,
5
5
  "main": "./index.ts",
6
6
  "module": "./index.ts",
package/src/utils/text.ts CHANGED
@@ -5,8 +5,8 @@ export const text2paragraphs = (text: string, firstLineBottomMargin: boolean = f
5
5
  (firstLineBottomMargin ? 'class="mb-3"' : '') +
6
6
  '>' +
7
7
  text.split('\n').join('</p><p>') +
8
- '<\/p>';
9
- return out.split('<p><\/p><p>').join('<p class="mt-3">');
8
+ '</p>';
9
+ return out.split('<p></p><p>').join('<p class="mt-3">');
10
10
  };
11
11
 
12
12
  export const countWords = (str: string) => {
@@ -14,7 +14,7 @@ export const countWords = (str: string) => {
14
14
  };
15
15
 
16
16
  export const firstSentence = (str: string) => {
17
- return str.split('\.');
17
+ return str.split('.');
18
18
  };
19
19
 
20
20
  export const removeSemicolon = (name: string) => {