Skip to content

Commit 3e61e8b

Browse files
committed
ignore delimiters when determining precision, fixes #8
1 parent de9174b commit 3e61e8b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Ranger.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,9 @@ private function push_to_mask(array $part)
428428
{
429429
if ($part['content'] !== '') {
430430
$this->pattern_mask[] = $part;
431-
$this->precision = max($this->precision, $part['content']);
431+
if (!$part['delimiter']) {
432+
$this->precision = max($this->precision, $part['content']);
433+
}
432434
}
433435
}
434436
}

0 commit comments

Comments
 (0)