Skip to content

Commit ae716ad

Browse files
committed
Merge branch 'master' of github.com:leocaseiro/jQuery-Plugin-stringToSlug
2 parents 9530f78 + 95801ce commit ae716ad

File tree

7 files changed

+22
-7
lines changed

7 files changed

+22
-7
lines changed

Diff for: bower.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jquery.stringtoslug",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"homepage": "https://github.com/leocaseiro/jQuery-Plugin-stringToSlug",
55
"bugs": "https://github.com/leocaseiro/jQuery-Plugin-stringToSlug/issues",
66
"authors": [
@@ -35,6 +35,6 @@
3535
],
3636
"dependencies": {
3737
"jquery": "~2.1.4",
38-
"speakingurl": "~6.0.0"
38+
"speakingurl": "~9.0.0"
3939
}
4040
}

Diff for: dist/jquery.stringToSlug.min.js renamed to dist/jquery.stringtoslug.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: karma.conf.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function(config) {
1717
files: [
1818
{pattern: './bower_components/jquery/dist/jquery.min.js'},
1919
{pattern: './bower_components/speakingurl/speakingurl.min.js'},
20-
{pattern:'./dist/jquery.stringToSlug.min.js'},
20+
{pattern:'./dist/jquery.stringtoslug.min.js'},
2121
{pattern: './tests/tests.js'}
2222
],
2323

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"karma": "^0.13.9",
5050
"karma-phantomjs-launcher": "^0.2.1",
5151
"karma-qunit": "^0.1.5",
52+
"phantomjs": "^2.1.3",
5253
"qunitjs": "^1.19.0"
5354
},
5455
"dependencies": {
File renamed without changes.

Diff for: tests/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
1212
<script type="text/javascript" src="../bower_components/jquery/dist/jquery.min.js"></script>
1313
<script src="../bower_components/speakingurl/speakingurl.min.js"></script>
14-
<script src="../dist/jquery.stringToSlug.min.js"></script>
14+
<script src="../dist/jquery.stringtoslug.min.js"></script>
1515
<script src="tests.js"></script>
1616
</body>
1717
</html>

Diff for: tests/tests.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,22 @@ test( "callback don't bind", function() {
104104
callback: function(){console.log('callback as console');}
105105
};
106106

107-
var preText = "A text betweet quotes “ and ” are not going to be a problem!";
108-
var resultExpect = 'a-text-betweet-quotes-and-are-not-going-to-be-a-problem';
107+
var preText = "A text betweet quotes “ and ” are not going to be a problem!";
108+
var resultExpect = 'a-text-betweet-quotes-and-are-not-going-to-be-a-problem';
109+
110+
fromToTest(preText, resultExpect, params);
111+
});
112+
113+
test( "titleCase with accent", function() {
114+
var params = {
115+
options: {
116+
titleCase: true,
117+
lang: 'pt'
118+
}
119+
};
120+
121+
var preText = "Ánhanguera should be Anhanguera, but it's getting ANhanguera, same as Anguéra";
122+
var resultExpect = 'Anhanguera-Should-Be-Anhanguera-But-It-s-Getting-ANhanguera-Same-As-Anguera';
109123

110124
fromToTest(preText, resultExpect, params);
111125
});

0 commit comments

Comments
 (0)