1
0
Fork 0
forked from 0x2620/oxjs

fix semicolons

This commit is contained in:
rolux 2014-08-19 10:19:59 +02:00
commit 1b90cc6ac8
12 changed files with 38 additions and 38 deletions

View file

@ -152,7 +152,7 @@
}
});
return ret;
};
}
/*@
Ox.addLinks <f> Takes a string and adds links for e-mail addresses and URLs
@ -195,7 +195,7 @@
return char == ':' ? ':'
: '&#'
+ (Math.random() < 0.5 ? code : 'x' + code.toString(16))
+ ';'
+ ';';
});
});
return '<a href="' + parts[0] + '">' + parts[1] + '</a>';
@ -341,7 +341,7 @@
// if decoding entities has created new tags, ignore them
splitHTMLTags(string, entities.map(function(entity) {
var ret = entity.position + offset;
offset += entity.length - entity.value.length
offset += entity.length - entity.value.length;
return ret;
})).forEach(function(v, i) {
if (i % 2 == 0) {