ohzi-core 10.0.0 → 10.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ohzi-core",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "OHZI Core Library",
5
5
  "source": "src/index.js",
6
6
  "module": "build/index.module.js",
@@ -36,12 +36,7 @@ class StringUtilities
36
36
 
37
37
  static snake_to_camelcase(string)
38
38
  {
39
- return string.replace(
40
- /([-_][a-z])/g,
41
- (group) => group.toUpperCase()
42
- .replace('-', '')
43
- .replace('_', '')
44
- );
39
+ return string.toLowerCase().replace(/[-_][a-z0-9]/g, (group) => group.slice(-1).toUpperCase());
45
40
  }
46
41
  }
47
42