update references regexp to match 'Ox.$' (which is never followed by a word boundary, since $ is not a word char)

This commit is contained in:
rolux 2012-06-13 12:04:11 +02:00
commit 71499d0cfa

View file

@ -380,7 +380,7 @@ Ox.load(function() {
}, },
items: app.data.docItems || void 0, items: app.data.docItems || void 0,
path: 'dev/', path: 'dev/',
references: /\b(Ox\.[\w\$]+)\b/g, references: /\b(Ox\.[\w\$]+(?=\W))/g,
replace: [app.re.code], replace: [app.re.code],
results: app.data.testResults || void 0, results: app.data.testResults || void 0,
selected: app.user.item.doc, selected: app.user.item.doc,
@ -419,7 +419,7 @@ Ox.load(function() {
.html(app.html.examples), .html(app.html.examples),
examples: app.data.examples, examples: app.data.examples,
path: 'examples/', path: 'examples/',
references: /\b(Ox\.[\w\$]+)\b/g, references: /\b(Ox\.[\w\$]+(?=\W))/g,
replaceCode: [app.re.code], replaceCode: [app.re.code],
replaceComment: [app.re.comment], replaceComment: [app.re.comment],
selected: app.user.item.examples selected: app.user.item.examples