projects
/
mdref
/
mdref
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
d88268c
)
fix linkage of NS constants
author
Michael Wallner
<mike@php.net>
Fri, 25 Mar 2016 14:40:22 +0000
(15:40 +0100)
committer
Michael Wallner
<mike@php.net>
Fri, 25 Mar 2016 14:40:22 +0000
(15:40 +0100)
public/index.js
patch
|
blob
|
history
diff --git
a/public/index.js
b/public/index.js
index 7c5a82c24043d6d5da63e41c3dfb5b1b631bd4aa..4878936a383649981948a0b3645b81534c10b3f3 100644
(file)
--- a/
public/index.js
+++ b/
public/index.js
@@
-99,7
+99,7
@@
$(function() {
}
if (-1 !== (j = s.lastIndexOf("\\")) && s.substr(j+1,1) !== "n") {
t = s.substring(j+1);
- if (!mdref.is_constant(t) || s.match(/\\/).length <= 1) {
+ if (!mdref.is_constant(t) || s.match(/\\/
g
).length <= 1) {
return "<a href=\"" + s.replace(/\\/g, "/").replace(/::/, "#") + "\">";
}
return "<a href=\"" + s.substring(0,j).replace(/\\/g, "/") + "#" + t + "\">";