Skip to content

Commit

Permalink
Update pkg/infra/pulumi_aws/iac/sanitization/sanitizer.ts
Browse files Browse the repository at this point in the history
Co-authored-by: ewucc <[email protected]>
  • Loading branch information
DavidSeptimus and ewucc authored Jan 19, 2023
1 parent 26a5641 commit ab1e0ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/infra/pulumi_aws/iac/sanitization/sanitizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function sanitize(s: string, options: Partial<SanitizationOptions>): Sani
failedRules?.forEach((f) => console.debug(f))
if (options.minLength != null && result.length < options.minLength) {
throw new Error(
`The sanitized value, "${result}", is shorten than minLength: ${options.minLength}`
`The sanitized value, "${result}", is shorter than minLength: ${options.minLength}`
)
}
if (options.maxLength != null && result.length > options.maxLength) {
Expand Down

0 comments on commit ab1e0ce

Please sign in to comment.