This file is indexed.

/usr/share/yapra/plugins/Filter/subs.rb is in yapra 0.1.2-7.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
def subs(config,data)
  reg = Regexp.new(config["regex"])
  to = config["to"]
  attribute = config['attribute']
  data.map! do |i|
    if attribute
      if i.respond_to?(attribute) && i.respond_to?("#{attribute}=")
        i.__send__("#{attribute}=", i.__send__("#{attribute}").gsub(reg, to))
      end
    else
      i = i.gsub(reg,to)
    end
    i
  end
  return data
end