(c)
| 14 | if (str.length <= length) return str; |
| 15 | |
| 16 | var tmpl = function(c) { |
| 17 | return c.toUpperCase() !== c.toLowerCase() ? 'A' : ' '; |
| 18 | }, |
| 19 | template = str.slice(0, length + 1).replace(/.(?=\W*\w*$)/g, tmpl); // 'Hello, world' -> 'HellAA AAAAA' |
| 20 | |
| 21 | if (template.slice(template.length - 2).match(/\w\w/)) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…