diff --git a/src/DimensionfulAngles.jl b/src/DimensionfulAngles.jl index 0385714..df5ea99 100644 --- a/src/DimensionfulAngles.jl +++ b/src/DimensionfulAngles.jl @@ -11,7 +11,7 @@ information. # Examples -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using DimensionfulAngles julia> 1.0ua"turn" @@ -79,7 +79,7 @@ Dimension: [`DimensionfulAngles.𝐀`](@ref). # Examples -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using DimensionfulAngles julia> 1.0ua"rad" + 20.0ua"mrad" @@ -103,7 +103,7 @@ Dimension: [`DimensionfulAngles.𝐀`](@ref). # Examples -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using DimensionfulAngles julia> 1ua"°" @@ -128,7 +128,7 @@ See also [`DimensionfulAngles.radᵃ`](@ref). # Examples -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using DimensionfulAngles julia> θ₀ @@ -154,7 +154,7 @@ It converts angle units and the following derived units: `sr`, `rpm`, `rps`). # Example -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using Unitful, DimensionfulAngles julia> ω = 3.2u"radᵃ/s" diff --git a/src/derived.jl b/src/derived.jl index 6f09fb4..e52a250 100644 --- a/src/derived.jl +++ b/src/derived.jl @@ -69,7 +69,7 @@ according to the relation ``f = ω/2π = 1/T``, where # Example -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using Unitful julia> using DimensionfulAngles diff --git a/src/uamacro.jl b/src/uamacro.jl index d4e3860..fb7a594 100644 --- a/src/uamacro.jl +++ b/src/uamacro.jl @@ -14,7 +14,7 @@ Note that what goes inside must be parsable as a valid Julia expression. # Examples -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using DimensionfulAngles julia> 1.0ua"turn" diff --git a/src/units.jl b/src/units.jl index 5365df6..baf094e 100644 --- a/src/units.jl +++ b/src/units.jl @@ -127,7 +127,7 @@ either degree (`°ᵃ`) or hour angle (`ʰᵃ`). # Example -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using DimensionfulAngles julia> sexagesimal(20.2ua"°") @@ -156,7 +156,7 @@ For degrees it is printed as `u° m′ s″` and for hour angle as `uʰ mᵐ sˢ # Example -```jldoctest; filter = r"(d*).(d{10})d+" => s"\1.\2" +```jldoctest; filter = r"(\\d*).(\\d{1,10})\\d+" => s"\\1.\\2" julia> using DimensionfulAngles julia> show_sexagesimal(20.2ua"°")