Skip to content

Commit

Permalink
change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
ElinorW committed Mar 19, 2024
1 parent c5d0836 commit e9f84ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/app/utils/query-parameter-sanitization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function isAllAlpha(str: string): boolean {
return ALL_ALPHA_REGEX.test(str);
}

function isAllAlphaNumeric(str: string): boolean {
function isAlphaNumeric(str: string): boolean {
return ONE_NUMERIC_REGEX.test(str);
}

Expand Down Expand Up @@ -488,7 +488,7 @@ function sanitizeFilterQueryOptionValue(queryParameterValue: string): string {
export {
isPropertyName,
isAllAlpha,
isAllAlphaNumeric,
isAlphaNumeric,
isPlaceHolderSegment,
sanitizeQueryParameter
}
4 changes: 2 additions & 2 deletions src/app/utils/query-url-sanitization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { IQuery } from '../../types/query-runner';
import {
isAllAlpha,
isAllAlphaNumeric,
isAlphaNumeric,
isPlaceHolderSegment,
sanitizeQueryParameter
} from './query-parameter-sanitization';
Expand Down Expand Up @@ -106,7 +106,7 @@ function sanitizePathSegment(previousSegment: string, segment: string): string {

if (
isAllAlpha(segment) ||
isAllAlphaNumeric(segment) ||
isAlphaNumeric(segment) ||
isDeprecation(segment) ||
SANITIZED_ITEM_PATH_REGEX.test(segment) ||
segmentsToIgnore.includes(segment.toLowerCase()) ||
Expand Down

0 comments on commit e9f84ad

Please sign in to comment.