// ** GFM ** Auto-link URLs and emails
text = text.replace( /https?\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!]/g
, function (wholeMatch,matchIndex) {
var left = text.slice(0, matchIndex), right = text.slice(matchIndex)
should be:
// ** GFM ** Auto-link URLs and emails
text = text.replace( /https?\:\/\/[^"\s\<\>]*[^.,;'">\:\s\<\>\)\]\!]/g
, function (wholeMatch,matchIndex) {
var left = text.slice(0, matchIndex), right = text.slice(matchIndex)
(assuming the current implementation of function indentation is correct)
Example:
should be:
(assuming the current implementation of function indentation is correct)