MCPcopy Create free account
hub / github.com/danpalmer/jquery.complexify.js / additionalComplexityForCharset

Function additionalComplexityForCharset

jquery.complexify.js:129–136  ·  view source on GitHub ↗
(str, charset)

Source from the content-addressed store, hash-verified

127 options = $.extend(defaults, options);
128
129 function additionalComplexityForCharset(str, charset) {
130 for (var i = str.length - 1; i >= 0; i--) {
131 if (charset[0] <= str.charCodeAt(i) && str.charCodeAt(i) <= charset[1]) {
132 return charset[1] - charset[0] + 1;
133 }
134 }
135 return 0;
136 }
137
138 function inBanlist(str) {
139 if (options.banMode === 'strict') {

Callers 1

evaluateSecurityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected