@rip-lang/api 1.1.1 → 1.1.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/api.rip +1 -1
- package/package.json +1 -1
package/api.rip
CHANGED
|
@@ -401,7 +401,7 @@ toMoney = (value, half, cents) ->
|
|
|
401
401
|
c = if neg then -c else c
|
|
402
402
|
if cents then c else c / 100
|
|
403
403
|
|
|
404
|
-
export toName = (str, type
|
|
404
|
+
export toName = (str, ...type) ->
|
|
405
405
|
s = String(str)
|
|
406
406
|
s = s.toLowerCase().replace(/\s+/g, ' ').trim()
|
|
407
407
|
s = s.replace /(^|(?<=\P{L}))(\p{L})/gu, (m, pre, ch) -> pre + ch.toUpperCase()
|