Skip to content

Commit

Permalink
fix: rename getExcludedRegularExpression to plural
Browse files Browse the repository at this point in the history
  • Loading branch information
Skn0tt committed May 24, 2023
1 parent 65435cf commit 3476b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ const generateManifest = ({
}

const pattern = getRegularExpression(declaration, featureFlags?.edge_functions_fail_unsupported_regex)
const excludedPattern = getExcludedRegularExpression(
const excludedPattern = getExcludedRegularExpressions(
declaration,
featureFlags?.edge_functions_fail_unsupported_regex,
)
Expand Down Expand Up @@ -202,7 +202,7 @@ const getRegularExpression = (declaration: Declaration, failUnsupportedRegex = f
return pathToRegularExpression(declaration.path)
}

const getExcludedRegularExpression = (declaration: Declaration, failUnsupportedRegex = false): string[] => {
const getExcludedRegularExpressions = (declaration: Declaration, failUnsupportedRegex = false): string[] => {
if ('excludedPattern' in declaration && declaration.excludedPattern) {
const excludedPatterns: string[] = Array.isArray(declaration.excludedPattern)
? declaration.excludedPattern
Expand Down

0 comments on commit 3476b72

Please sign in to comment.