@quenty/string 2.0.0 → 2.1.0

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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/string@2.0.0...@quenty/string@2.1.0) (2021-09-22)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add new string feature ([fc8d68c](https://github.com/Quenty/NevermoreEngine/commit/fc8d68c11b6cd7fc5dacc86f3229e81f481452f6))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/string@1.2.0...@quenty/string@2.0.0) (2021-09-05)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/string",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "This module provides utility functions for strings",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "access": "public"
30
30
  },
31
- "gitHead": "c06170ec47b0d4520c587ce2e6404d14b5dbb851"
31
+ "gitHead": "6288c63115f31544fce6663d018826e81ef01c7f"
32
32
  }
@@ -89,6 +89,10 @@ function String.removePostfix(str, postfix)
89
89
  end
90
90
  end
91
91
 
92
+ function String.endsWith(str, postfix)
93
+ return str:sub(-#postfix) == postfix
94
+ end
95
+
92
96
  function String.addCommas(number)
93
97
  if type(number) == "number" then
94
98
  number = tostring(number)