Code style fixes

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2018-06-10 20:55:01 +02:00
parent 1a4b2e5f01
commit 57f58e5e68
2 changed files with 5 additions and 3 deletions

View File

@@ -14,7 +14,7 @@
- 🚀 Get your project organized
</description>
<version>0.4.0-alpha1</version>
<version>0.4.0-alpha3</version>
<licence>agpl</licence>
<author>Julius Härtl</author>
<namespace>Deck</namespace>

View File

@@ -70,10 +70,12 @@ app.controller('CardController', function ($scope, $rootScope, $sce, $location,
$scope.status.edit.description = $scope.status.edit.description.replace(reg, function (match, i, original) {
if (nth++ === id) {
var result;
if (match.match(/^\[\s\]/i))
if (match.match(/^\[\s\]/i)) {
result = match.replace(/\[\s\]/i, '[x]');
if (match.match(/^\[x\]/i))
}
if (match.match(/^\[x\]/i)) {
result = match.replace(/\[x\]/i, '[ ]');
}
return result;
}
return match;