mirror of
https://github.com/DependencyTrack/dependency-track.git
synced 2025-10-19 16:03:19 +00:00
10 lines
232 B
Ruby
Executable file
10 lines
232 B
Ruby
Executable file
module Jekyll
|
|
module RegexFilter
|
|
def replace_regex(input, regex_string, replace_string)
|
|
regex = Regexp.new regex_string
|
|
input.gsub regex, replace_string
|
|
end
|
|
end
|
|
end
|
|
|
|
Liquid::Template.register_filter(Jekyll::RegexFilter)
|