From 455a80d47484eb12a21314727b980bd7ceb05166 Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Sun, 18 Oct 2020 21:19:09 -0400 Subject: [PATCH] spelling: versioning Signed-off-by: Josh Soref --- lib/manager/regex/readme.md | 2 +- lib/versioning/index.ts | 2 +- lib/versioning/poetry/index.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/manager/regex/readme.md b/lib/manager/regex/readme.md index 7bda2c92cad92c..0847123d4d0276 100644 --- a/lib/manager/regex/readme.md +++ b/lib/manager/regex/readme.md @@ -97,6 +97,6 @@ The above (obviously not a complete `Dockerfile`, but abbreviated for this examp } ``` -In the above the `versioningTemplate` is not actually necessary because Renovate already defaults to `semver` versioning, but it has been included to help illustrate why we call these fields _templates_. They are named this way because they are compiled using `handlebars` and so can be composed from values you collect in named capture groups. You will usually want to use the tripe brace `{{{ }}}` template (e.v. `{{{versioniong}}}` to be safe because `handlebars` escapes special characters by default with double braces. +In the above the `versioningTemplate` is not actually necessary because Renovate already defaults to `semver` versioning, but it has been included to help illustrate why we call these fields _templates_. They are named this way because they are compiled using `handlebars` and so can be composed from values you collect in named capture groups. You will usually want to use the tripe brace `{{{ }}}` template (e.v. `{{{versioning}}}` to be safe because `handlebars` escapes special characters by default with double braces. By adding the comments to the `Dockerfile`, you can see that instead of four separate `regexManagers` being required, there is now only one - and the `Dockerfile` itself is now somewhat better documented too. The syntax we used there is completely arbitrary and you may choose your own instead if you prefer - just be sure to update your `matchStrings` regex. diff --git a/lib/versioning/index.ts b/lib/versioning/index.ts index 7106a2a3ee871a..5d872a34a4aa64 100644 --- a/lib/versioning/index.ts +++ b/lib/versioning/index.ts @@ -10,7 +10,7 @@ export * from './common'; export const getVersioningList = (): string[] => Array.from(versionings.keys()); /** - * Get versioning map. Can be used to dynamically add new versionig type + * Get versioning map. Can be used to dynamically add new versioning type */ export const getVersionings = (): Map< string, diff --git a/lib/versioning/poetry/index.ts b/lib/versioning/poetry/index.ts index b433d8fb807dd3..005d17ef43ac57 100644 --- a/lib/versioning/poetry/index.ts +++ b/lib/versioning/poetry/index.ts @@ -24,7 +24,7 @@ function poetry2npm(input: string): string { return versions.join(' '); } -// NOTE: This function is copied from cargo versionsing code. +// NOTE: This function is copied from cargo versioning code. // Poetry uses commas (like in cargo) instead of spaces (like in npm) // for AND operation. function npm2poetry(input: string): string {