@quenty/playerutils 2.1.0 → 2.2.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.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerutils@2.1.0...@quenty/playerutils@2.2.0) (2022-11-04)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add PlayerUtils.formatDisplayName(name, displayName) ([a27c3e9](https://github.com/Quenty/NevermoreEngine/commit/a27c3e9dae1f6a0ea7e18b6bbda78098fe504916))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/playerutils@2.0.0...@quenty/playerutils@2.1.0) (2022-10-16)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/playerutils",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Player utility functions",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -32,5 +32,5 @@
32
32
  "@quenty/loader": "^6.0.0",
33
33
  "@quenty/rx": "^7.1.0"
34
34
  },
35
- "gitHead": "667cf763046b6cd67b3e75adb03ba19be7c1f78c"
35
+ "gitHead": "1cf7e4838d864bdce2e5751b6c97d38bce29e9a6"
36
36
  }
@@ -22,6 +22,10 @@ function PlayerUtils.formatName(player)
22
22
  local name = player.Name
23
23
  local displayName = player.DisplayName
24
24
 
25
+ return PlayerUtils.formatDisplayName(name, displayName)
26
+ end
27
+
28
+ function PlayerUtils.formatDisplayName(name, displayName)
25
29
  if name:lower() == displayName:lower() then
26
30
  return displayName
27
31
  else