Is it possible to interpolate a value in a doctest output?

Suppose I have a doctest for a package where I define Chebyshev:

```jldoctest
julia> Chebyshev(0..1)
Chebyshev(0..1)
```

Say, my package depends on another package that defines the interval 0..1. Now, if the dependency decides to change how 0..1 is displayed to 0 .. 1, this breaks my doctest for a seemingly trivial reason. Is it possible to interpolate the interval and rewrite the doctest as

```jldoctest
julia> Chebyshev(0..1)
Chebyshev($(0..1))
```

where the interval will not contribute to a breakage? It seems possible to add a regex filter, but that is easier to write for one-liners than for a block of code.