forked from 0x2620/oxjs
fix semicolons
This commit is contained in:
parent
4fbfc139b4
commit
1b90cc6ac8
12 changed files with 38 additions and 38 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue