first commit
This commit is contained in:
13
build/node_modules/source-list-map/lib/helpers.js
generated
vendored
Normal file
13
build/node_modules/source-list-map/lib/helpers.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
Author Tobias Koppers @sokra
|
||||
*/
|
||||
exports.getNumberOfLines = function getNumberOfLines(str) {
|
||||
var nr = -1;
|
||||
var idx = -1;
|
||||
do {
|
||||
nr++
|
||||
idx = str.indexOf("\n", idx + 1);
|
||||
} while(idx >= 0);
|
||||
return nr;
|
||||
};
|
||||
Reference in New Issue
Block a user