Skip to content

Commit 7e69710

Browse files
authored
binaryplatforms.jl: Remove unnecessary backslash in regex (#57468)
This regex and two very similar ones a few lines below use different "quoting styles", which confused me when reading, suspecting an error. There is no error. This PR changes `\.` to `.` inside a regex character class. Both have the same meaning. Avoiding the backslash is the simpler way.
1 parent 378a425 commit 7e69710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/binaryplatforms.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ function Base.parse(::Type{Platform}, triplet::String; validate_strict::Bool = f
751751
end
752752
os_version = nothing
753753
if os == "macos"
754-
os_version = extract_os_version("macos", r".*darwin([\d\.]+)"sa)
754+
os_version = extract_os_version("macos", r".*darwin([\d.]+)"sa)
755755
end
756756
if os == "freebsd"
757757
os_version = extract_os_version("freebsd", r".*freebsd([\d.]+)"sa)

0 commit comments

Comments
 (0)