Skip to content

Commit 9e820cd

Browse files
author
kurttheviking
committed
rm newline chars in returned strings
1 parent 4511ecc commit 9e820cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function _command (cmd) {
99
throw new Error('failed to execute git-rev-sync command', result);
1010
}
1111

12-
return result.stdout;
12+
return result.stdout.replace(/^\s+|\s+$/g, '');
1313
}
1414

1515

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "git-rev-sync",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"author": "kurttheviking",
55
"bugs": {
66
"web": "https://github.com/kurttheviking/git-rev-sync/issues"

0 commit comments

Comments
 (0)