From 45482c3a1b06f76e88b5579df7b11dd2d24cbe8b Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Tue, 25 Feb 2025 17:43:41 +0700 Subject: [PATCH] fix: typos and ignore some false typos --- .typos.toml | 2 ++ src/controllers/00-doc-template-controller.ts | 4 ++-- src/controllers/08-credit-note-controller.ts | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) create mode 100644 .typos.toml diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 0000000..5664db5 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,2 @@ +[default] +extend-ignore-re = ["(?Rm)^.*(#|//)\\s*spellchecker:disable-line$"] diff --git a/src/controllers/00-doc-template-controller.ts b/src/controllers/00-doc-template-controller.ts index 1726bf0..e375c55 100644 --- a/src/controllers/00-doc-template-controller.ts +++ b/src/controllers/00-doc-template-controller.ts @@ -341,7 +341,7 @@ function nationality(text: string, lang: "th" | "en" = "en") { case "th": return ( { - ["THA"]: "ไทย", + ["THA"]: "ไทย", // spellchecker:disable-line ["MMR"]: "เมียนมา", ["LAO"]: "ลาว", ["KHM"]: "กัมพูชา", @@ -353,7 +353,7 @@ function nationality(text: string, lang: "th" | "en" = "en") { default: return ( { - ["THA"]: "Thai", + ["THA"]: "Thai", // spellchecker:disable-line ["MMR"]: "Myanmar", ["LAO"]: "Laos", ["KHM"]: "Khmer", diff --git a/src/controllers/08-credit-note-controller.ts b/src/controllers/08-credit-note-controller.ts index b094f84..f0e3fbd 100644 --- a/src/controllers/08-credit-note-controller.ts +++ b/src/controllers/08-credit-note-controller.ts @@ -536,7 +536,7 @@ export class CreditNoteController extends Controller { if (record.creditNoteStatus !== CreditNoteStatus.Waiting) { throw new HttpError( HttpStatus.BAD_REQUEST, - "Accpeted credit note cannot be deleted", + "Accepted credit note cannot be deleted", "creditNoteAcceptedNoDelete", ); }