From 3c76724aeb8c8a7c360edb8d9b1a71479e9a7d1a Mon Sep 17 00:00:00 2001 From: Anton Kesy Date: Mon, 12 Jan 2026 02:23:58 +0100 Subject: [PATCH] fix: correct typos (#1398) --- docs/blog/2025-06-27-release-1.20.0/index.mdx | 2 +- docs/blog/2025-07-22-release-1.21.1/index.mdx | 2 +- docs/docs/admin/botstopper.mdx | 2 +- docs/manifest/cfg/anubis/botPolicies.yaml | 2 +- lib/challenge/metarefresh/metarefresh.go | 2 +- lib/challenge/preact/preact.go | 2 +- lib/config/logging.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/blog/2025-06-27-release-1.20.0/index.mdx b/docs/blog/2025-06-27-release-1.20.0/index.mdx index 0b7c86d..318db73 100644 --- a/docs/blog/2025-06-27-release-1.20.0/index.mdx +++ b/docs/blog/2025-06-27-release-1.20.0/index.mdx @@ -226,7 +226,7 @@ So far Anubis supports the following languages: - English (Simplified and Traditional) - French -- Portugese (Brazil) +- Portuguese (Brazil) - Spanish If you want to contribute translations, please [file an issue](https://github.com/TecharoHQ/anubis/issues/new) with your language of choice or submit a pull request to [the `lib/localization/locales` folder](https://github.com/TecharoHQ/anubis/tree/main/lib/localization/locales). We are about to introduce features to the translation stack, so you may want to hold off a hot minute, but we welcome any and all contributions to making Anubis useful to a global audience. diff --git a/docs/blog/2025-07-22-release-1.21.1/index.mdx b/docs/blog/2025-07-22-release-1.21.1/index.mdx index f2a6cf8..237edf6 100644 --- a/docs/blog/2025-07-22-release-1.21.1/index.mdx +++ b/docs/blog/2025-07-22-release-1.21.1/index.mdx @@ -69,7 +69,7 @@ I am waiting to hear back from NLNet on if Anubis was selected for funding or no Anubis now supports localized responses. Locales can be added in [lib/localization/locales/](https://github.com/TecharoHQ/anubis/tree/main/lib/localization/locales). This release includes support for the following languages: -- [Brazilian Portugese](https://github.com/TecharoHQ/anubis/pull/726) +- [Brazilian Portuguese](https://github.com/TecharoHQ/anubis/pull/726) - [Chinese (Simplified)](https://github.com/TecharoHQ/anubis/pull/774) - [Chinese (Traditional)](https://github.com/TecharoHQ/anubis/pull/759) - [Czech](https://github.com/TecharoHQ/anubis/pull/849) diff --git a/docs/docs/admin/botstopper.mdx b/docs/docs/admin/botstopper.mdx index d98df8d..2e46961 100644 --- a/docs/docs/admin/botstopper.mdx +++ b/docs/docs/admin/botstopper.mdx @@ -85,7 +85,7 @@ Follow [the upstream Docker compose directions](https://anubis.techaro.lol/docs/ OG_EXPIRY_TIME: "24h" + # botstopper config here -+ CHALLENGE_TITLE: "Doing math for your connnection!" ++ CHALLENGE_TITLE: "Doing math for your connection!" + ERROR_TITLE: "Something went wrong!" + OVERLAY_FOLDER: /assets + volumes: diff --git a/docs/manifest/cfg/anubis/botPolicies.yaml b/docs/manifest/cfg/anubis/botPolicies.yaml index e5be287..fbac6cd 100644 --- a/docs/manifest/cfg/anubis/botPolicies.yaml +++ b/docs/manifest/cfg/anubis/botPolicies.yaml @@ -160,7 +160,7 @@ impressum:

How the Information is used

-

The information is used to enhance the vistor's experience when using the website to display personalised content and possibly advertising.

+

The information is used to enhance the visitor's experience when using the website to display personalised content and possibly advertising.

E-mail addresses will not be sold, rented or leased to 3rd parties.

diff --git a/lib/challenge/metarefresh/metarefresh.go b/lib/challenge/metarefresh/metarefresh.go index c554b91..cb5b023 100644 --- a/lib/challenge/metarefresh/metarefresh.go +++ b/lib/challenge/metarefresh/metarefresh.go @@ -52,7 +52,7 @@ func (i *Impl) Validate(r *http.Request, lg *slog.Logger, in *challenge.Validate wantTime := in.Challenge.IssuedAt.Add(time.Duration(in.Rule.Challenge.Difficulty) * 800 * time.Millisecond) if time.Now().Before(wantTime) { - return challenge.NewError("validate", "insufficent time", fmt.Errorf("%w: wanted user to wait until at least %s", challenge.ErrFailed, wantTime.Format(time.RFC3339))) + return challenge.NewError("validate", "insufficient time", fmt.Errorf("%w: wanted user to wait until at least %s", challenge.ErrFailed, wantTime.Format(time.RFC3339))) } gotChallenge := r.FormValue("challenge") diff --git a/lib/challenge/preact/preact.go b/lib/challenge/preact/preact.go index a785f98..896642e 100644 --- a/lib/challenge/preact/preact.go +++ b/lib/challenge/preact/preact.go @@ -60,7 +60,7 @@ func (i *impl) Validate(r *http.Request, lg *slog.Logger, in *challenge.Validate wantTime := in.Challenge.IssuedAt.Add(time.Duration(in.Rule.Challenge.Difficulty) * 80 * time.Millisecond) if time.Now().Before(wantTime) { - return challenge.NewError("validate", "insufficent time", fmt.Errorf("%w: wanted user to wait until at least %s", challenge.ErrFailed, wantTime.Format(time.RFC3339))) + return challenge.NewError("validate", "insufficient time", fmt.Errorf("%w: wanted user to wait until at least %s", challenge.ErrFailed, wantTime.Format(time.RFC3339))) } got := r.FormValue("result") diff --git a/lib/config/logging.go b/lib/config/logging.go index b16a4ca..f82cac4 100644 --- a/lib/config/logging.go +++ b/lib/config/logging.go @@ -15,7 +15,7 @@ var ( type Logging struct { Sink string `json:"sink"` // Logging sink, either "stdio" or "file" - Level *slog.Level `json:"level"` // Log level, if set supercedes the level in flags + Level *slog.Level `json:"level"` // Log level, if set supersedes the level in flags Parameters *LoggingFileConfig `json:"parameters"` // Logging parameters, to be dynamic in the future }