Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "initials", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"authors": [ | ||
@@ -5,0 +5,0 @@ "Gregor Martynus <gregor@martynus.net>" |
@@ -12,2 +12,19 @@ module.exports = function(grunt) { | ||
} | ||
}, | ||
// https://github.com/vojtajina/grunt-bump | ||
// bump version of app | ||
bump: { | ||
options: { | ||
files: ['package.json', 'bower.json'], | ||
updateConfigs: [], | ||
commit: true, | ||
commitMessage: 'Release %VERSION%', | ||
commitFiles: ['package.json', 'bower.json'], // '-a' for all files | ||
createTag: true, | ||
tagName: '%VERSION%', | ||
tagMessage: 'Release %VERSION%', | ||
push: true, | ||
pushTo: 'origin' | ||
} | ||
} | ||
@@ -18,5 +35,6 @@ }); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks('grunt-bump'); | ||
grunt.registerTask('test', ['qunit']); | ||
grunt.registerTask('default', ['watch']); | ||
}; | ||
}; |
@@ -21,3 +21,3 @@ /* global define */ | ||
var findDomainInEmailPattern = /@[^\s]+/; | ||
var findEmailPattern = /[^\s]+@[^\s]+/g; | ||
var findEmailPattern = /[\w\._-]+@[\w\.-]+[\w]/g; | ||
var findFirstLettersOfWordsPattern = /\b\w/g; | ||
@@ -24,0 +24,0 @@ var findAllNonCharactersPattern = /[^\w]+/g; |
{ | ||
"name": "initials", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "initials for names", | ||
@@ -22,4 +22,5 @@ "main": "initials.js", | ||
"grunt-contrib-qunit": "~0.4.0", | ||
"grunt-contrib-watch": "~0.5.3" | ||
"grunt-contrib-watch": "~0.5.3", | ||
"grunt-bump": "0.0.13" | ||
} | ||
} |
@@ -31,2 +31,13 @@ Initials. Because JD is shorter than John Doe | ||
// ['JD', 'RR'] | ||
// alias | ||
initials.find('John Doe') | ||
// parse name(s) | ||
initials.parse('John Doe') | ||
// {name: 'John Doe', initials: 'JD'} | ||
// add initials to name(s) | ||
initials.addTo('John Doe') | ||
// 'John Doe (JD)' | ||
``` | ||
@@ -33,0 +44,0 @@ |
@@ -63,2 +63,3 @@ /* global initials, test, equal, deepEqual */ | ||
deepEqual( initials.parse('joe@example.com'), {email: 'joe@example.com', initials: 'jo'}, 'joe@example.com ☛ email: joe@example.com, initials: jo' ); | ||
deepEqual( initials.parse('John Doe <joe@example.com>'), {name: 'John Doe', initials: 'JD', email: 'joe@example.com'}, 'joe@example.com ☛ email: joe@example.com, initials: jo' ); | ||
}); | ||
@@ -65,0 +66,0 @@ test( 'initials.parse( namesArray )', function() { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1938548
23304
89
4