Skip to content

Commit

Permalink
Addressed feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser authored Aug 14, 2024
1 parent 94b522a commit 5342b46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/compiler/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10105,14 +10105,15 @@ export const emptyFileSystemEntries: FileSystemEntries = {
};

/**
* patternOrStrings contains both patterns (containing "*") and regular strings.
* `parsedPatterns` contains both patterns (containing "*") and regular strings.
* Return an exact match if possible, or a pattern match, or undefined.
* (These are verified by verifyCompilerOptions to have 0 or 1 "*" characters.)
*
* @internal
*/
export function matchPatternOrExact(patternOrStrings: ParsedPatterns, candidate: string): string | Pattern | undefined {
const { matchableStringSet, patterns } = patternOrStrings;
export function matchPatternOrExact(parsedPatterns: ParsedPatterns, candidate: string): string | Pattern | undefined {
const { matchableStringSet, patterns } = parsedPatterns;


if (matchableStringSet?.has(candidate)) {
return candidate;
Expand Down

0 comments on commit 5342b46

Please sign in to comment.