We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a0e52 commit 9e7be39Copy full SHA for 9e7be39
src/Wizard.jl
@@ -167,11 +167,16 @@ end
167
Given a filename, normalize it, stripping out extensions. E.g. the file path
168
`"foo/libfoo.tar.gz"` would get mapped to `"libfoo"`.
169
"""
170
-function normalize_name(file::AbstractString)
+function normalize_name(file::AbstractString, )
171
file = basename(file)
172
idx = findfirst(file, '.')
173
if idx != 0
174
- return file[1:prevind(file, idx)]
+ file = file[1:prevind(file, idx)]
175
+ end
176
+ # String -123, which is a common thing for libraries on windows
177
+ idx = findlast(file, '-')
178
+ if idx != 0 && all(isnumber, file[nextind(file, idx):end])
179
180
end
181
return file
182
0 commit comments