Skip to content

Commit e0b11c1

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a4b6235 commit e0b11c1

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

frontend/src/entries/index.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,14 @@ export class Balance extends EntryBase<"Balance"> {
158158

159159
/** Create a new empty Balance entry on the date. */
160160
static empty(date: string): Balance {
161-
return new Balance(new EntryMetadata(), date, "", "", RawAmount.empty(), null);
161+
return new Balance(
162+
new EntryMetadata(),
163+
date,
164+
"",
165+
"",
166+
RawAmount.empty(),
167+
null,
168+
);
162169
}
163170

164171
private static raw_validator = object({
@@ -168,7 +175,7 @@ export class Balance extends EntryBase<"Balance"> {
168175
entry_hash: string,
169176
account: string,
170177
amount: RawAmount.validator,
171-
diff_amount: optional(Amount.validator)
178+
diff_amount: optional(Amount.validator),
172179
});
173180

174181
static validator: Validator<Balance> = (json) =>

frontend/src/journal/JournalEntry.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747
return liClasses;
4848
});
4949
50-
const unitRegex = /([\d\.]+)\s+(\w+)/;
51-
const costRegex = /\{([\d\.]+)\s+(\w+),\s([\w\-]+)\}/;
52-
const priceRegex = /@\s([\d\.]+)\s+(\w+)/;
50+
const unitRegex = /([\d.]+)\s+(\w+)/;
51+
const costRegex = /\{([\d.]+)\s+(\w+),\s([\w-]+)\}/;
52+
const priceRegex = /@\s([\d.]+)\s+(\w+)/;
5353
5454
type PostingAmounts = [
5555
[amount: string, currency: string],

0 commit comments

Comments
 (0)