Skip to content

Commit

Permalink
Fix #660
Browse files Browse the repository at this point in the history
  • Loading branch information
rrrene committed Jun 10, 2019
1 parent 0033038 commit 6b7db32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/credo/check/consistency/space_around_operators.ex
Expand Up @@ -136,7 +136,7 @@ defmodule Credo.Check.Consistency.SpaceAroundOperators do
defp number_in_fun?(line, column) do
line
|> String.slice(0..(column - 2))
|> String.match?(~r/[\.\&][a-z0-9_]+$/)
|> String.match?(~r/[\.\&][a-z0-9_]+[\!\?]?$/)
end

# TODO: this implementation is a bit naive. improve it.
Expand Down

0 comments on commit 6b7db32

Please sign in to comment.