Skip to content

Commit 3a10c56

Browse files
committed
fix: use the basename of the file path
1 parent a980d57 commit 3a10c56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mongo/migration.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ defmodule Mongo.Migration do
170170

171171
version =
172172
~r/[0-9]/
173-
|> Regex.scan(file)
173+
|> Regex.scan(Path.basename(file))
174174
|> Enum.join()
175175
|> String.to_integer()
176176

0 commit comments

Comments
 (0)