Skip to content

Commit

Permalink
fix(pack): Fix path_regex regular expression (#1284)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucazz authored Dec 13, 2024
1 parent b25c9e7 commit bc828fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/astrocommunity/pack/ansible/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ local function yaml_ft(path, bufnr)
if type(content) == "table" then content = table.concat(content, "\n") end

-- check if file is in roles, tasks, or handlers folder
local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|\\vars\\|tasks)/"
local path_regex = vim.regex "(ansible\\|group_vars\\|handlers\\|host_vars\\|playbooks\\|roles\\|vars\\|tasks)/"
if path_regex and path_regex:match_str(path) then return "yaml.ansible" end

-- check for known ansible playbook text and if found, return yaml.ansible
Expand Down

0 comments on commit bc828fc

Please sign in to comment.