Skip to content

Commit

Permalink
fix: trim input before passing to String.to_integer/1. (#389)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsynz authored Sep 18, 2024
1 parent bc26951 commit 6eda5fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/migration_generator/migration_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ defmodule AshPostgres.MigrationGenerator do

opts
|> prompt(message)
|> String.trim()
|> String.to_integer()
end

Expand Down

0 comments on commit 6eda5fa

Please sign in to comment.