static/js/dncp/util/kwargs.js
Function kwargs
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function kwargs(func, defaults) {
/*jshint maxlen : 200*/
var removeComments = new RegExp('(\\/\\*[\\w\\\'\\,\\(\\)\\s\\r\\n\\*]*\\*\\/)|(\\/\\/[\\w\\s\\\'][^\\n\\r]*$)|(<![\\-\\-\\s\\w\\>\\/]*>)', 'gim');
var removeWhitespc = new RegExp('\\s+', 'gim');
var matchSignature = new RegExp('function.*?\\((.*?)\\)', 'i');