Skip to content

Commit aa9636b

Browse files
committed
Remove GPL License
1 parent 84f2d97 commit aa9636b

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

Diff for: dist/jquery.stringToSlug.min.js

+14
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1+
/*
2+
* jQuery stringToSlug plug-in 2.0.0
3+
*
4+
* Documentation http://leocaseiro.github.io/jQuery-Plugin-stringToSlug/
5+
*
6+
* Copyright (c) 2009-2015 Leo Caseiro
7+
*
8+
* v1 Based on [Edson Hilios](http://www.edsonhilios.com.br/) Algorithm
9+
* v2 Uses [SpeakingURL](https://github.com/pid/speakingurl)
10+
*
11+
*
12+
* Dual licensed under the MIT and GPL licenses:
13+
* http://www.opensource.org/licenses/mit-license.php
14+
*/
115
var _stringToSlug_API=function(e,t){"use strict";var r,s={setEvents:"keyup keydown blur",getPut:"#permalink",space:"-",prefix:"",suffix:"",replace:"",AND:"and",options:{},callback:!1};jQuery.extend(s,t),s.options.hasOwnProperty("separator")||(s.options.separator=s.space),s.options.hasOwnProperty("custom")||(s.options.custom={"&":s.AND}),e=e.replace(s.replace,"");try{e=getSlug(e,s.options)}catch(n){console.warn("Make sure you insert speakingurl.min.js before jquery.stringToSlug.min.js")}return r=s.prefix+e+s.suffix};jQuery.fn.stringToSlug=function(e){"use strict";var t={setEvents:"keyup keydown blur",getPut:"#permalink",space:"-",prefix:"",suffix:"",replace:"",AND:"and",callback:!1};return jQuery.extend(t,e),jQuery(this).bind(t.setEvents,function(){var r=jQuery(this).val(),s=_stringToSlug_API(r,e);return jQuery(t.getPut).val(s),jQuery(t.getPut).html(s),!1!==t.callback&&t.callback(s),this}),this};

Diff for: src/jquery.stringToSlug.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
* v2 Uses [SpeakingURL](https://github.com/pid/speakingurl)
1010
*
1111
*
12-
* Dual licensed under the MIT and GPL licenses:
13-
* http://www.opensource.org/licenses/mit-license.php
14-
* http://www.gnu.org/licenses/gpl.html
12+
* Released under the MIT license
13+
* http://www.opensource.org/licenses/mit-license.php
1514
*/
1615
var _stringToSlug_API = function( text, options ) {
1716
'use strict';

0 commit comments

Comments
 (0)