X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=index.js;h=a6c39342de32691896e6890b274c8735219e57b9;hb=fb441d8cee5fbab5f4621ce0361a848045bfed43;hp=45b5bb87f507905a029b95416381fcac4bc3f1fd;hpb=62de37d8c446969f97b08544af97f557b7efac9a;p=mdref%2Fmdref diff --git a/index.js b/index.js index 45b5bb8..a6c3934 100644 --- a/index.js +++ b/index.js @@ -86,7 +86,7 @@ function type(s, nn) { return ""; } } - if (-1 !== (j = s.indexOf("\\"))) { + if (-1 !== (j = s.indexOf("\\")) && s.substr(j+1,1) !== "n") { return ""; }