From a28977e977dcbf2b05667c188e8554905f0e0837 Mon Sep 17 00:00:00 2001 From: Pierre Grimaud Date: Mon, 20 Apr 2020 12:56:03 +0200 Subject: [PATCH] Fix typos (#417) --- docs/adrs/0381-glob-module.md | 2 +- packages/artifact/src/internal/status-reporter.ts | 2 +- packages/core/__tests__/command.test.ts | 2 +- packages/glob/__tests__/internal-pattern.test.ts | 2 +- packages/glob/src/internal-globber.ts | 2 +- packages/glob/src/internal-pattern.ts | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/adrs/0381-glob-module.md b/docs/adrs/0381-glob-module.md index af2c3245..a61fd8bb 100644 --- a/docs/adrs/0381-glob-module.md +++ b/docs/adrs/0381-glob-module.md @@ -37,7 +37,7 @@ export function create( */ export interface Globber { /** - * Returns the search path preceeding the first glob segment, from each pattern. + * Returns the search path preceding the first glob segment, from each pattern. * Duplicates and descendants of other paths are filtered out. * * Example 1: The patterns `/foo/*` and `/bar/*` returns `/foo` and `/bar`. diff --git a/packages/artifact/src/internal/status-reporter.ts b/packages/artifact/src/internal/status-reporter.ts index 681dcfc9..b890ad8a 100644 --- a/packages/artifact/src/internal/status-reporter.ts +++ b/packages/artifact/src/internal/status-reporter.ts @@ -49,7 +49,7 @@ export class StatusReporter { for (const value of Array.from(this.largeFiles.values())) { info(value) } - // delete all entires in the map after displaying the information so it will not be displayed again unless explicitly added + // delete all entries in the map after displaying the information so it will not be displayed again unless explicitly added this.largeFiles.clear() }, 1000) } diff --git a/packages/core/__tests__/command.test.ts b/packages/core/__tests__/command.test.ts index da3df23a..c5bb1dd5 100644 --- a/packages/core/__tests__/command.test.ts +++ b/packages/core/__tests__/command.test.ts @@ -113,7 +113,7 @@ describe('@actions/core/src/command', () => { ]) }) - it('should handle issueing commands for non-string objects', () => { + it('should handle issuing commands for non-string objects', () => { command.issueCommand( 'some-command', { diff --git a/packages/glob/__tests__/internal-pattern.test.ts b/packages/glob/__tests__/internal-pattern.test.ts index 5a2fbcc3..11b0507d 100644 --- a/packages/glob/__tests__/internal-pattern.test.ts +++ b/packages/glob/__tests__/internal-pattern.test.ts @@ -69,7 +69,7 @@ describe('pattern', () => { } }) - it('globstar matches immediately preceeding directory', () => { + it('globstar matches immediately preceding directory', () => { const root = IS_WINDOWS ? 'C:\\' : '/' const pattern = new Pattern(`${root}foo/bar/**`) const actual = [ diff --git a/packages/glob/src/internal-globber.ts b/packages/glob/src/internal-globber.ts index a84d298d..aac3032d 100644 --- a/packages/glob/src/internal-globber.ts +++ b/packages/glob/src/internal-globber.ts @@ -17,7 +17,7 @@ export {GlobOptions} */ export interface Globber { /** - * Returns the search path preceeding the first glob segment, from each pattern. + * Returns the search path preceding the first glob segment, from each pattern. * Duplicates and descendants of other paths are filtered out. * * Example 1: The patterns `/foo/*` and `/bar/*` returns `/foo` and `/bar`. diff --git a/packages/glob/src/internal-pattern.ts b/packages/glob/src/internal-pattern.ts index 348acca8..1e2a992f 100644 --- a/packages/glob/src/internal-pattern.ts +++ b/packages/glob/src/internal-pattern.ts @@ -21,7 +21,7 @@ export class Pattern { /** * The path/pattern segments. Note, only the first segment (the root directory) - * may contain a directory separator charactor. Use the trailingSeparator field + * may contain a directory separator character. Use the trailingSeparator field * to determine whether the pattern ended with a trailing slash. */ readonly segments: string[] @@ -130,7 +130,7 @@ export class Pattern { itemPath = pathHelper.normalizeSeparators(itemPath) // Append a trailing slash. Otherwise Minimatch will not match the directory immediately - // preceeding the globstar. For example, given the pattern `/foo/**`, Minimatch returns + // preceding the globstar. For example, given the pattern `/foo/**`, Minimatch returns // false for `/foo` but returns true for `/foo/`. Append a trailing slash to handle that quirk. if (!itemPath.endsWith(path.sep)) { // Note, this is safe because the constructor ensures the pattern has an absolute root.