File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ module.exports = BananaSlug
4
4
5
5
var own = Object . hasOwnProperty
6
6
var whitespace = / \s / g
7
- var specials = / [ \u2000 - \u206F \u2E00 - \u2E7F \\ ' ! " # $ % & ( ) * + , . / : ; < = > ? @ [ \] ^ ` { | } ~ ] / g
7
+ var specials = / [ \u2000 - \u206F \u2E00 - \u2E7F \\ ' ! " # $ % & ( ) * + , . / : ; < = > ? @ [ \] ^ ` { | } ~ ’ ] / g
8
8
9
9
function BananaSlug ( ) {
10
10
var self = this
Original file line number Diff line number Diff line change 13
13
# initial space
14
14
15
15
# final space
16
+
17
+ # heading with apostrophe’s
Original file line number Diff line number Diff line change @@ -102,6 +102,12 @@ var testCases = [
102
102
text : 'final space ' ,
103
103
slug : 'final-space'
104
104
} ,
105
+ // Note: Apostrophe in heading is trimmed off in markdown
106
+ {
107
+ mesg : 'apostrophe’s should be trimmed' ,
108
+ text : 'apostrophe’s should be trimmed' ,
109
+ slug : 'apostrophes-should-be-trimmed'
110
+ } ,
105
111
// See `7-duplicates.md`
106
112
{
107
113
mesg : 'deals with duplicates correctly' ,
You can’t perform that action at this time.
0 commit comments