We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f3aea1 commit b0ad5f4Copy full SHA for b0ad5f4
libraries/ident.rb
@@ -163,7 +163,11 @@ def self.read(file = 'pg_ident.conf', sort: true)
163
def split_entries
164
return if @ident_entries.empty?
165
166
- @ident_entries.map! { |entry| SPLIT_REGEX.match(entry).named_captures.compact.transform_keys(&:to_sym) }
+ @ident_entries.map! do |entry|
167
+ match = SPLIT_REGEX.match(entry)
168
+ match ? match.named_captures.compact.transform_keys(&:to_sym) : nil
169
+ end
170
+ @ident_entries.compact!
171
end
172
173
def marshall_entries
0 commit comments