Skip to content

Commit

Permalink
fix: use the basename of the file path
Browse files Browse the repository at this point in the history
  • Loading branch information
zookzook committed Jan 2, 2023
1 parent a980d57 commit 3a10c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/migration.ex
Expand Up @@ -170,7 +170,7 @@ defmodule Mongo.Migration do

version =
~r/[0-9]/
|> Regex.scan(file)
|> Regex.scan(Path.basename(file))
|> Enum.join()
|> String.to_integer()

Expand Down

0 comments on commit 3a10c56

Please sign in to comment.