parser: fix IPv6 detection
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
d44aed2cff
commit
b824c204a6
@ -2627,7 +2627,9 @@ namespace stdex
|
|||||||
bool is_empty = true;
|
bool is_empty = true;
|
||||||
|
|
||||||
if (m_separator->match(text, this->interval.end, end, flags)) {
|
if (m_separator->match(text, this->interval.end, end, flags)) {
|
||||||
if (m_separator->match(text, m_separator->interval.end, end, flags)) {
|
// : found
|
||||||
|
this->interval.end = m_separator->interval.end;
|
||||||
|
if (m_separator->match(text, this->interval.end, end, flags)) {
|
||||||
// :: found
|
// :: found
|
||||||
if (compaction_i == SIZE_MAX) {
|
if (compaction_i == SIZE_MAX) {
|
||||||
// Zero compaction start
|
// Zero compaction start
|
||||||
@ -2640,11 +2642,7 @@ namespace stdex
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (i) {
|
else if (!i) {
|
||||||
// Inner : found
|
|
||||||
this->interval.end = m_separator->interval.end;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
// Leading : found
|
// Leading : found
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user