mirror of
https://github.com/DependencyTrack/dependency-track.git
synced 2025-10-19 16:03:19 +00:00
11 lines
232 B
Ruby
11 lines
232 B
Ruby
![]() |
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)
|