Skip to content

Commit

Permalink
Merge pull request #28 from piersolenski/feature/fix-python-regex
Browse files Browse the repository at this point in the history
Fix Python regex
  • Loading branch information
piersolenski authored Aug 17, 2024
2 parents baa2d50 + d9d5828 commit 67ee5b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/import/languages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local languages = {
extensions = { "java" },
},
{
regex = [[(?m)^(?:from[ ]+(\S+)[ ]+)?import[ ]+(\S+)[ ]*$]],
regex = [[(?m)^(?:from\s+(\S+)\s+)?import\s+([^#\n]+)]],
filetypes = { "python" },
extensions = { "py" },
},
Expand Down

0 comments on commit 67ee5b2

Please sign in to comment.