Skip to content

Commit

Permalink
chore: remove unused method
Browse files Browse the repository at this point in the history
Co-authored-by: Iris Booker <iris.booker@getbraintree.com>
  • Loading branch information
braintreeps and Iris Booker committed Jul 8, 2024
1 parent ccb54da commit 3565d2c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ function decodeURI(uri: string): string {
}
}

function sanitizeString(str: string): string {
return str
.replace(/[^a-zA-Z0-9-_./]/g, '')
.replace(/\.+/g, '.')
.replace(/^\./, '')
.replace(/\.$/, '');
}

export function sanitizeUrl(url?: string): string {
if (!url) {
return BLANK_URL;
Expand Down

0 comments on commit 3565d2c

Please sign in to comment.