[gnome-ostree] task: Only strip whitespace from end of status
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-ostree] task: Only strip whitespace from end of status
- Date: Sat, 18 May 2013 23:50:08 +0000 (UTC)
commit a509bfa7ca866d5ec8048a7b7884ef04ee3d8346
Author: Colin Walters <walters verbum org>
Date: Sat May 18 19:14:46 2013 -0400
task: Only strip whitespace from end of status
src/js/task.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/js/task.js b/src/js/task.js
index 6948c0a..52c2b4e 100644
--- a/src/js/task.js
+++ b/src/js/task.js
@@ -494,7 +494,7 @@ const TaskDef = new Lang.Class({
let statusTxtPath = this._workdir.get_child('status.txt');
if (statusTxtPath.query_exists(null)) {
let contents = GSystem.file_load_contents_utf8(statusTxtPath, cancellable);
- meta['status'] = contents.replace(/[ \n]/g, '');
+ meta['status'] = contents.replace(/[ \n]+$/, '');
}
JsonUtil.writeJsonFileAtomic(this._workdir.get_child('meta.json'), meta, cancellable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]