Skip to content

Commit 37fb97d

Browse files
jmkuhnstevengj
authored andcommitted
Export isnumeric (#543)
1 parent 59a67a4 commit 37fb97d

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,8 @@ Currently, the `@compat` macro supports the following syntaxes:
414414

415415
* `cfunction` is now `@cfunction` ([#26486]).
416416

417+
* `Unicode.isnumeric` is now available as `isnumeric` ([#25479]).
418+
417419
## New macros
418420

419421
* `@__DIR__` has been added ([#18380])
@@ -594,6 +596,7 @@ includes this fix. Find the minimum version from there.
594596
[#25402]: https://github.com/JuliaLang/julia/issues/25402
595597
[#25458]: https://github.com/JuliaLang/julia/issues/25458
596598
[#25459]: https://github.com/JuliaLang/julia/issues/25459
599+
[#25479]: https://github.com/JuliaLang/julia/issues/25479
597600
[#25496]: https://github.com/JuliaLang/julia/issues/25496
598601
[#25522]: https://github.com/JuliaLang/julia/issues/25522
599602
[#25544]: https://github.com/JuliaLang/julia/issues/25544

src/Compat.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,12 @@ module Unicode
11351135
end
11361136
end
11371137

1138+
# 0.7.0-DEV.3393
1139+
@static if VERSION < v"0.7.0-DEV.3393"
1140+
import .Unicode.isnumeric
1141+
export isnumeric
1142+
end
1143+
11381144
# 0.7.0-DEV.2951
11391145
@static if !isdefined(Base, :AbstractDict)
11401146
const AbstractDict = Associative

test/runtests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,10 @@ module Test25021
10261026
@test Compat.Unicode.normalize("\t\r", stripcc=true) == " "
10271027
end
10281028

1029+
# 0.7.0-DEV.3393
1030+
@test !isnumeric('a')
1031+
@test isnumeric('1')
1032+
10291033
# 0.7.0-DEV.2951
10301034
@test AbstractDict === (isdefined(Base, :AbstractDict) ? Base.AbstractDict : Base.Associative)
10311035

0 commit comments

Comments
 (0)