@quenty/datastore 7.25.0 → 7.25.1

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,18 @@
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
+ ## [7.25.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@7.25.0...@quenty/datastore@7.25.1) (2023-09-07)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix actual code for data store match ([ed39424](https://github.com/Quenty/NevermoreEngine/commit/ed3942460c7abbd3f21f988e562d0e5b84aeec05))
12
+ * Fix issue where DataStoreStringUtils.isValidUTF8(str) may not detect invalid strings ([88682b0](https://github.com/Quenty/NevermoreEngine/commit/88682b0600be6642fd44dc9db09a124eca46433c))
13
+
14
+
15
+
16
+
17
+
6
18
  # [7.25.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/datastore@7.24.0...@quenty/datastore@7.25.0) (2023-09-04)
7
19
 
8
20
  **Note:** Version bump only for package @quenty/datastore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/datastore",
3
- "version": "7.25.0",
3
+ "version": "7.25.1",
4
4
  "description": "Quenty's Datastore implementation for Roblox",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -42,5 +42,5 @@
42
42
  "publishConfig": {
43
43
  "access": "public"
44
44
  },
45
- "gitHead": "fa0826fa54fabecb242d7c0753e2e7644ba02e11"
45
+ "gitHead": "fe2f05c688fe7c7bb7db1f969aa46b008fda8a7f"
46
46
  }
@@ -17,12 +17,16 @@ function DataStoreStringUtils.isValidUTF8(str)
17
17
  return false, "Not a string"
18
18
  end
19
19
 
20
- -- https://gist.github.com/TheGreatSageEqualToHeaven/e0e1dc2698307c93f6013b9825705899?permalink_comment_id=4334757#gistcomment-4334757
21
- if utf8.len(str) == nil then
20
+ if not utf8.len(str) then
21
+ return false, "Invalid string"
22
+ end
23
+
24
+ -- https://gist.github.com/TheGreatSageEqualToHeaven/e0e1dc2698307c93f6013b9825705899#patch-1
25
+ if string.match(str, "[^\0-\127]") then
22
26
  return false, "Invalid string"
23
27
  end
24
28
 
25
29
  return true
26
30
  end
27
31
 
28
- return DataStoreStringUtils
32
+ return DataStoreStringUtils