Skip to content

Commit

Permalink
update the list
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Dec 6, 2024
1 parent 920c1c4 commit 068bd8d
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/rules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7941,7 +7941,7 @@ net.vc
org.vc
gv.vc
d.gv.vc
0e.vc
*.0e.vc
mydns.vc
ve
arts.ve
Expand Down
19 changes: 16 additions & 3 deletions src/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90493,13 +90493,26 @@ fn lookup_1203() -> Info {
}
}
#[inline]
fn lookup_1204_0(acc: usize) -> Info {
fn lookup_1204_0_0(wild: &[u8], acc: usize) -> Info {
Info {
len: acc + 1 + 2usize,
len: acc + 1 + wild.len(),
typ: Some(Type::Private),
}
}
#[inline]
fn lookup_1204_0<'a, T>(info: Info, mut labels: T, mut acc: usize) -> Info
where
T: Iterator<Item = &'a [u8]>,
{
acc += 1 + 2usize;
match labels.next() {
Some(label) => match label {
wild => lookup_1204_0_0(wild, acc),
},
None => info,
}
}
#[inline]
fn lookup_1204_1(acc: usize) -> Info {
Info {
len: acc + 1 + 3usize,
Expand Down Expand Up @@ -90585,7 +90598,7 @@ where
};
match labels.next() {
Some(label) => match label {
[48, 101] => lookup_1204_0(acc),
[48, 101] => lookup_1204_0(info, labels, acc),
[99, 111, 109] => lookup_1204_1(acc),
[101, 100, 117] => lookup_1204_2(acc),
[103, 111, 118] => lookup_1204_3(acc),
Expand Down

0 comments on commit 068bd8d

Please sign in to comment.