Skip to content

Commit 9c2b975

Browse files
committed
trying to fix updated regex issue
1 parent 1f4e649 commit 9c2b975

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
* @edgardmessias Not check SVN version if folder not contains ".svn" folder
88
* @edgardmessias Fixed ignored folder for multifolder svn to work with Windows
9+
* @JohnstonCode Possilbe fix for #67
910

1011
# **v1.4.0**
1112

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "svn-scm",
33
"displayName": "SVN",
44
"description": "Integrated Subversion source control",
5-
"version": "1.4.0",
5+
"version": "1.4.1",
66
"publisher": "johnstoncode",
77
"engines": {
88
"vscode": "^1.17.0"

src/svnRepository.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,10 @@ export class Repository {
226226
throw new Error(result.stderr);
227227
}
228228

229-
const message = result.stdout.match(/At revision (.*)\./i)[0];
229+
const message = result.stdout
230+
.trim()
231+
.split(/\r?\n/)
232+
.pop();
230233

231234
return message;
232235
}

0 commit comments

Comments
 (0)