Method: Build::Text::Substitutions::NestedSubstitution#line_pattern
- Defined in:
- lib/build/text/substitutions.rb
#line_pattern(prefix = '') ⇒ Object
127 128 129 130 131 132 |
# File 'lib/build/text/substitutions.rb', line 127 def line_pattern(prefix = '') tag_pattern = Regexp.escape('<' + prefix + @keyword + '>') # Line matching pattern: Regexp.new('^(.*?)' + tag_pattern + '(.*)$', Regexp::MULTILINE | Regexp::EXTENDED) end |