Version: 1.0.0-alpha.11.0.0-alpha.21.0.01.0.11.0.21.0.31.1.01.2.01.2.11.3.01.3.11.4.01.4.11.5.01.5.11.6.01.6.11.6.21.7.01.7.11.8.01.8.11.9.01.9.11.9.21.9.31.9.41.9.51.9.61.9.71.10.0-beta.01.10.0-beta.11.10.01.10.11.10.21.10.31.11.01.12.01.12.11.12.21.12.31.12.41.12.5
"use strict";
function lineCounter(string) {
let lines = 1;
for (let i = 0; i < string.length; i++) {
if (string.charAt(i) === '\n') {
lines++;
}
return lines;
module.exports = lineCounter;