Skip to content

Commit

Permalink
Remove trailing period from reverse domains 🧹
Browse files Browse the repository at this point in the history
  • Loading branch information
wotschofsky committed Dec 30, 2023
1 parent 5d6b721 commit 6dc375c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/lookupIp/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const lookupReverse = async (ip: string): Promise<string[]> => {
const data = await response.json();

return data.Answer
? data.Answer.map((record: { data: string }) => record.data)
? data.Answer.map((record: { data: string }) => record.data.slice(0, -1))
: [];
};

Expand Down

1 comment on commit 6dc375c

@vercel
Copy link

@vercel vercel bot commented on 6dc375c Dec 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.