Socket
Socket
Sign inDemoInstall

@agape/string

Package Overview
Dependencies
0
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

agape-string-1.0.2.tgz

3

dist/cjs/lib/string.js

@@ -41,3 +41,4 @@ "use strict";

return string
.replace(/(.)([A-Z][a-z]+)/g, (str, left, right) => { return left + ' ' + right; })
// split words on capital letters
.replace(/(.)([A-Z][a-z]+)/g, (str, left, right) => { return left + ' ' + right.toLowerCase(); })
.replace(/[-_]/, ' ')

@@ -44,0 +45,0 @@ .replace(/^([a-z])/, (str) => { return str.toUpperCase(); });

@@ -41,3 +41,4 @@ "use strict";

return string
.replace(/(.)([A-Z][a-z]+)/g, (str, left, right) => { return left + ' ' + right; })
// split words on capital letters
.replace(/(.)([A-Z][a-z]+)/g, (str, left, right) => { return left + ' ' + right.toLowerCase(); })
.replace(/[-_]/, ' ')

@@ -44,0 +45,0 @@ .replace(/^([a-z])/, (str) => { return str.toUpperCase(); });

{
"name": "@agape/string",
"version": "1.0.2",
"version": "1.0.3",
"description": "String and token manipulation",

@@ -5,0 +5,0 @@ "main": "dist/cjs/public_api.js",

@@ -82,2 +82,9 @@ import {} from "jasmine";

it('should verbalize the string', () => {
expect( verbalize('fooBar') ).toEqual('Foo bar')
})
it('should verbalize the string', () => {
expect( verbalize('firstName') ).toEqual('First name')
})
})

@@ -46,3 +46,4 @@

return string
.replace(/(.)([A-Z][a-z]+)/g , (str, left, right) => { return left + ' ' + right } )
// split words on capital letters
.replace(/(.)([A-Z][a-z]+)/g , (str, left, right) => { return left + ' ' + right.toLowerCase() } )
.replace(/[-_]/, ' ')

@@ -49,0 +50,0 @@ .replace(/^([a-z])/, (str) => { return str.toUpperCase() } )

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc