speakingurl
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"name": "speakingurl", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Generate a slug – transliteration with a lot of options", | ||
@@ -5,0 +5,0 @@ "main": "speakingurl.min.js", |
Changelog | ||
========= | ||
- v1.1.1 cleanup, update dev dependencies | ||
- v1.1.0 custom config can be an array, all chars are added to allowed chars | ||
@@ -5,0 +6,0 @@ - v1.0.0 fix #47; bumpup to semver ;-) |
@@ -5,3 +5,3 @@ { | ||
"description": "Generate of so called 'static' or 'Clean URL' or 'Pretty URL' or 'nice-looking URL' or 'Speaking URL' or 'user-friendly URL' or 'SEO-friendly URL' or 'slug' from a string.", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "slug", |
{ | ||
"name": "speakingurl", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "Generate a slug – transliteration with a lot of options", | ||
@@ -51,5 +51,5 @@ "homepage": "http://pid.github.io/speakingurl/", | ||
"gulp-header": "^1.2.2", | ||
"gulp-jsbeautifier": "0.0.6", | ||
"gulp-jsbeautifier": "0.0.8", | ||
"gulp-jshint": "^1.8.5", | ||
"gulp-load-plugins": "^0.8.0", | ||
"gulp-load-plugins": "^0.9.0", | ||
"gulp-mocha": "^2.0.0", | ||
@@ -56,0 +56,0 @@ "gulp-rename": "^1.2.0", |
@@ -55,3 +55,3 @@ SpeakingURL [![NPM version](https://badge.fury.io/js/speakingurl.png)](http://badge.fury.io/js/speakingurl) [![Build Status](https://travis-ci.org/pid/speakingurl.png)](https://travis-ci.org/pid/speakingurl) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pid/speakingurl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) | ||
- available versions: http://cdnjs.com/libraries/speakingurl/ | ||
- use //cdnjs.cloudflare.com/ajax/libs/speakingurl/1.1.0/speakingurl.min.js | ||
- use //cdnjs.cloudflare.com/ajax/libs/speakingurl/1.1.1/speakingurl.min.js | ||
@@ -61,3 +61,3 @@ #### [CDN/maxcdn](https://www.maxcdn.com/) | ||
- available versions: http://www.jsdelivr.com/#!speakingurl | ||
- use //cdn.jsdelivr.net/speakingurl/1.1.0/speakingurl.min.js | ||
- use //cdn.jsdelivr.net/speakingurl/1.1.1/speakingurl.min.js | ||
@@ -64,0 +64,0 @@ Usage |
/** | ||
* speakingurl | ||
* @version v1.1.0 | ||
* @version v1.1.1 | ||
* @link http://pid.github.io/speakingurl/ | ||
@@ -5,0 +5,0 @@ * @license BSD |
@@ -8,3 +8,3 @@ /* global describe,it */ | ||
it('should be added to allowed chars', function (done) { | ||
it('should be transliterated', function (done) { | ||
@@ -15,6 +15,6 @@ getSlug('буу', { | ||
'б': 'б', | ||
'у': 'y' | ||
'у': 'у' | ||
} | ||
}) | ||
.should.eql('бyy'); | ||
.should.eql('буу'); | ||
@@ -46,2 +46,12 @@ getSlug('[nodejs]', { | ||
done(); | ||
}); | ||
it('should be extended with allowed chars', function (done) { | ||
getSlug('буу', { | ||
custom: ['б', 'у'] | ||
}) | ||
.should.eql('буу'); | ||
getSlug('[Knöpfe]', { | ||
@@ -48,0 +58,0 @@ custom: ['[', ']'] |
118757
2907