Skip to content

Commit a0e5491

Browse files
parthppep-parth
authored andcommitted
Replace apostrophe with empty string (like github)
Github treats apostrophe as empty string. Hence, slugger should do the same.
1 parent 9a212f0 commit a0e5491

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = BananaSlug
44

55
var own = Object.hasOwnProperty
66
var whitespace = /\s/g
7-
var specials = /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g
7+
var specials = /[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g
88

99
function BananaSlug () {
1010
var self = this

0 commit comments

Comments
 (0)