JuliaLang / Compat.jl

Compatibility across Julia versions
Other
145 stars 117 forks source link

Add `endswith` with regex check #707

Closed siddharthlal25 closed 3 years ago

siddharthlal25 commented 4 years ago

For pre-Julia v1.2, endswith supports signature:

endswith(::String, ::String)

It would be nice to add this version (implemented in Julia 1.2 and above)

endswith(::String, ::Regex)
nickrobinson251 commented 3 years ago

https://github.com/JuliaLang/Compat.jl/pull/733