First Commit!

This should work out nicely
This commit is contained in:
Amrit Panesar committed 2014-06-06 09:37:24 -07:00
1 parent ccfb9833af
commit d79a13a3b3
4 files changed
+11 -38

No files matched your search

+6 -5
View File
@@ -30,11 +30,12 @@ function walk(node)
function handleText(textNode)
{
var v = textNode.nodeValue;
v = v.replace(/\bThe Cloud\b/g, "My Butt");
v = v.replace(/\bThe cloud\b/g, "My butt");
v = v.replace(/\bthe Cloud\b/g, "my Butt");
v = v.replace(/\bthe cloud\b/g, "my butt");
// Deal with the easy case
v = v.replace(/\b(W|w)alk/g, function(match, p1, p2, offset, string) {
w = String.fromCharCode(p1.charCodeAt(0));
return w + "ank";
});
textNode.nodeValue = v;
}