codetriage/codetriage

View on GitHub
app/assets/javascripts/replace_text.js

Summary

Maintainability
A
45 mins
Test Coverage

Avoid deeply nested control flow statements.
Open

(function($){$.fn.replaceText=function(b,a,c){return this.each(function(){var f=this.firstChild,g,e,d=[];if(f){do{if(f.nodeType===3){g=f.nodeValue;e=g.replace(b,a);if(e!==g){if(!c&&/</.test(e)){$(f).before(e);d.push(f)}else{f.nodeValue=e}}}}while(f=f.nextSibling)}d.length&&$(d).remove()})}})(jQuery);
Severity: Major
Found in app/assets/javascripts/replace_text.js - About 45 mins to fix

    There are no issues that match your filters.

    Category
    Status