Skip to content

Commit

Permalink
refactor: prettier + eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
joshcanhelp committed Nov 19, 2023
1 parent 2519fb3 commit c113874
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/scripts/transactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { hardNo, print } from "../utils/index.js";
import { formatCurrency } from "../utils/money.js";
import { sortTransactionsByDate } from "../utils/transaction.js";
import { CommandArgs } from "../cli.js";
import { dateRegex } from "../utils/date.js";
import { promptFilter } from "../utils/prompt.js";

export const run = async (
Expand Down
2 changes: 1 addition & 1 deletion src/utils/date.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { padLeftZero } from "./index.js";

export const dateRegex = /^[0-9]{4}(?:-[0-9]{2})?(?:-[0-9]{2})?$/
export const dateRegex = /^[0-9]{4}(?:-[0-9]{2})?(?:-[0-9]{2})?$/;

////
/// Functions
Expand Down
2 changes: 1 addition & 1 deletion src/utils/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class DB {
return !!this.tids[account] && this.tids[account].includes(id);
};

public getAll= (): string[][] => this.store;
public getAll = (): string[][] => this.store;

public getByDate = (dateRequested: string): string[][] => {
const searchRegex = new RegExp(`^${dateRequested}`, "g");
Expand Down

0 comments on commit c113874

Please sign in to comment.