Skip to content

Commit 491d2e4

Browse files
jmkuhnstevengj
authored andcommitted
ismatch deprecation (#56)
1 parent f486d6a commit 491d2e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

REQUIRE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
julia 0.6
2-
Compat 0.40.0
2+
Compat 0.46.0
33
BinDeps

src/DecFP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ end
7373

7474
function Base.show(io::IO, x::DecimalFloatingPoint)
7575
s = @sprintf("%g", x)
76-
if ismatch(r"^-?\d+$", s)
76+
if contains(s, r"^-?\d+$")
7777
s *= ".0"
7878
end
7979
print(io, s)

0 commit comments

Comments
 (0)