radashi 12.9.1 → 12.9.2
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/dist/radashi.cjs +1 -1
- package/dist/radashi.js +1 -1
- package/package.json +1 -1
package/dist/radashi.cjs
CHANGED
|
@@ -1926,7 +1926,7 @@ function snake(str, options) {
|
|
|
1926
1926
|
const result = parts.reduce((acc, part) => {
|
|
1927
1927
|
return `${acc}_${part.toLowerCase()}`;
|
|
1928
1928
|
});
|
|
1929
|
-
return (options == null ? void 0 : options.splitOnNumber) === false ? result : result.replace(/([A-Za-z]{1}[0-9]{1})
|
|
1929
|
+
return (options == null ? void 0 : options.splitOnNumber) === false ? result : result.replace(/([A-Za-z]{1}[0-9]{1})/g, (val) => `${val[0]}_${val[1]}`);
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
1932
|
// src/string/template.ts
|
package/dist/radashi.js
CHANGED
|
@@ -1924,7 +1924,7 @@ function snake(str, options) {
|
|
|
1924
1924
|
const result = parts.reduce((acc, part) => {
|
|
1925
1925
|
return `${acc}_${part.toLowerCase()}`;
|
|
1926
1926
|
});
|
|
1927
|
-
return (options == null ? void 0 : options.splitOnNumber) === false ? result : result.replace(/([A-Za-z]{1}[0-9]{1})
|
|
1927
|
+
return (options == null ? void 0 : options.splitOnNumber) === false ? result : result.replace(/([A-Za-z]{1}[0-9]{1})/g, (val) => `${val[0]}_${val[1]}`);
|
|
1928
1928
|
}
|
|
1929
1929
|
|
|
1930
1930
|
// src/string/template.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "radashi",
|
|
3
|
-
"version": "12.9.
|
|
3
|
+
"version": "12.9.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The modern, community-first TypeScript toolkit with all of the fast, readable, and minimal utility functions you need. Type-safe, dependency-free, tree-shakeable, fully tested.",
|
|
6
6
|
"repository": {
|