Merge pull request #2 from coffeeworks/patch-1

Update content_script.js (preserve capitalization)
This commit is contained in:
Steven Frank committed 2013-03-12 10:28:52 -07:00
commit cb48d13248
1 file changed
+1 -1
+1 -1
View File
@@ -29,7 +29,7 @@ function walk(node)
function handleText(textNode)
{
textNode.nodeValue = textNode.nodeValue.replace(/\bthe cloud\b/gi, "my butt");
textNode.nodeValue = textNode.nodeValue.replace(/\bThe cloud\b/g, "My butt").replace(/\bthe cloud\b/gi, "my butt");
}