From 71499d0cfacd841699e5b4afd62854d8d118dddc Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 13 Jun 2012 12:04:11 +0200 Subject: [PATCH] update references regexp to match 'Ox.$' (which is never followed by a word boundary, since $ is not a word char) --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index f9c49660..70d794a9 100644 --- a/index.js +++ b/index.js @@ -380,7 +380,7 @@ Ox.load(function() { }, items: app.data.docItems || void 0, path: 'dev/', - references: /\b(Ox\.[\w\$]+)\b/g, + references: /\b(Ox\.[\w\$]+(?=\W))/g, replace: [app.re.code], results: app.data.testResults || void 0, selected: app.user.item.doc, @@ -419,7 +419,7 @@ Ox.load(function() { .html(app.html.examples), examples: app.data.examples, path: 'examples/', - references: /\b(Ox\.[\w\$]+)\b/g, + references: /\b(Ox\.[\w\$]+(?=\W))/g, replaceCode: [app.re.code], replaceComment: [app.re.comment], selected: app.user.item.examples