Skip to content

Commit

Permalink
style(conf_loader): add "jo" option for ngx.re.sub (#13169)
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw authored Jun 6, 2024
1 parent 22c96a2 commit c4a25e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/conf_loader/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ local function load_config(thing)
-- remove trailing comment, if any
-- and remove escape chars from octothorpes
if value then
value = ngx.re.sub(value, [[\s*(?<!\\)#.*$]], "")
value = ngx.re.sub(value, [[\s*(?<!\\)#.*$]], "", "jo")
value = gsub(value, "\\#", "#")
end
return value
Expand Down

1 comment on commit c4a25e8

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:c4a25e80aa8299bc649df70540306ba3f7c597bc
Artifacts available https://github.com/Kong/kong/actions/runs/9396054164

Please sign in to comment.