Content deleted Content added
f |
Don't run for certain HTML tags, namely CODE and PRE for now |
||
Line 1:
// Generated by CoffeeScript 1.
/**
Line 130:
CommentsInLocalTime.replaceText = function(node, search) {
var after, afterMatch, before, beforeMatch, child, children, length, match, matches, parent, parentNodeName, position, span, timeArray, timestamp, value, _i, _len, _results;
if (!node) {
return false;
}
if (node.nodeType === 3) {
parent = node.parentNode;
parentNodeName = parent.nodeName;
if (['CODE', 'PRE'].indexOf(parentNodeName) > -1) {
return false;
}
value = node.nodeValue;
matches = value.match(search);
|