Skip to content

Commit

Permalink
Fix regexp (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
leungbk authored Jun 26, 2020
1 parent a09f8e2 commit 784da60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blacken.el
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ Return black process the exit code."
(when blacken-skip-string-normalization
(list "--skip-string-normalization"))
(when (and (buffer-file-name (current-buffer))
(string-match "\.pyi$" (buffer-file-name (current-buffer))))
(string-match "\\.pyi\\'" (buffer-file-name (current-buffer))))
(list "--pyi"))
'("-")))

Expand Down

0 comments on commit 784da60

Please sign in to comment.