1446 | JavaScript 1-line solution
Runtime: 80 ms, faster than 56.32% of JavaScript online submissions\n> Memory Usage: 36.9 MB, less than 100.00% of JavaScript online submissions\n\njavascript\n
> Runtime: **80 ms**, faster than *56.32%* of JavaScript online submissions\n> Memory Usage: **36.9 MB**, less than *100.00%* of JavaScript online submissions\n\n```javascript\nconst maxPower = s =>\n  s\n    .split(/((\\w)\\2*)/)\n    .reduce(\n      (max, match) => (max < match.length ? match.length : max),\n      -Infinity,\n    );\n```
['JavaScript']