From 9b79a0e585d3b9cef14459e8b1f2addf12ec52d9 Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 26 Jun 2012 03:15:27 +0200 Subject: [PATCH] make an exception for 'Ox.My' when creating doc links --- index.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 3ff6b9e8..ddd8669b 100644 --- a/index.js +++ b/index.js @@ -296,14 +296,20 @@ Ox.load(function() { + '([\\w\\$]+)<\\/span>', 'g' ), - function (str) { - return '' + str + ''; + function(match) { + var string = Ox.stripTags(match); + return string == 'Ox.My' ? string + : '' + match + ''; } ], comment: [ /\b(Ox\.[\w\$]+)/g, - '$1' + function(match) { + return match == 'Ox.My' ? match + : '' + match + '' + } ], size: [ /\{size\.(\w+)\}/g,