Skip to content

Commit 00367ff

Browse files
committed
[runmode.node addon] Export countColumn
1 parent 449eab8 commit 00367ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addon/runmode/runmode.node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function splitLines(string){return string.split(/\r\n?|\n/);};
77

88
// Counts the column offset in a string, taking tabs into account.
99
// Used mostly to find indentation.
10-
var countColumn = function(string, end, tabSize, startIndex, startValue) {
10+
var countColumn = exports.countColumn = function(string, end, tabSize, startIndex, startValue) {
1111
if (end == null) {
1212
end = string.search(/[^\s\u00a0]/);
1313
if (end == -1) end = string.length;

0 commit comments

Comments
 (0)