Skip to content

Commit

Permalink
fix asn rule copy
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Nov 17, 2024
1 parent 4c51a4a commit f004921
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@ const CopyableSettingItem: React.FC<{
const menuItems = [
{ key: 'raw', text: value },
...prefix.flatMap(p =>
(p === 'DOMAIN-SUFFIX' ? getSubDomains(value) : [value]).map(v => ({
(p === 'DOMAIN-SUFFIX'
? getSubDomains(value)
: p === 'IP-ASN'
? [value.split(' ')[0]]
: [value]
).map(v => ({
key: `${p},${v}${suffix}`,
text: `${p},${v}${suffix}`
}))
Expand Down

0 comments on commit f004921

Please sign in to comment.