mirror of
https://github.com/uetchy/namae.git
synced 2025-08-20 09:58:13 +09:00
fix: not to match exact tld
This commit is contained in:
@@ -10,7 +10,7 @@ const DomainCard: React.FC<{query: string}> = ({query}) => {
|
||||
const lowerCase = query.toLowerCase();
|
||||
|
||||
const domainHackSuggestions = zones
|
||||
.map((zone) => new RegExp(`${zone}$`).exec(lowerCase))
|
||||
.map((zone) => new RegExp(`(?<=.)${zone}$`).exec(lowerCase))
|
||||
.filter((s): s is RegExpExecArray => s !== null)
|
||||
.map(
|
||||
(m) =>
|
||||
|
Reference in New Issue
Block a user