Module: Muwu::Helper::RegexpLib

Defined in:
lib/muwu/helper/regexp_lib.rb

Class Method Summary collapse

Class Method Details

.file_ext_mdObject



9
10
11
# File 'lib/muwu/helper/regexp_lib.rb', line 9

def file_ext_md
  /.md\z/i
end

.markdown_headingObject



14
15
16
# File 'lib/muwu/helper/regexp_lib.rb', line 14

def markdown_heading
  /\A#+/
end

.markdown_heading_plus_whitespaceObject



19
20
21
# File 'lib/muwu/helper/regexp_lib.rb', line 19

def markdown_heading_plus_whitespace
  /\A#+\s*/
end

.metadata_key_date_of_this_editionObject



24
25
26
# File 'lib/muwu/helper/regexp_lib.rb', line 24

def 
  /\Adate\s*of\s*this\s*edition/i
end

.not_alphanumeric_underscore_or_single_dotObject



29
30
31
# File 'lib/muwu/helper/regexp_lib.rb', line 29

def not_alphanumeric_underscore_or_single_dot
  /[^a-zA-Z0-9_\.]/
end

.outline_contentsObject



44
45
46
# File 'lib/muwu/helper/regexp_lib.rb', line 44

def outline_contents
  /\Acontents/i
end

.outline_metadataObject



34
35
36
# File 'lib/muwu/helper/regexp_lib.rb', line 34

def 
  /\Ametadata/i
end

.outline_navigatorObject



39
40
41
# File 'lib/muwu/helper/regexp_lib.rb', line 39

def outline_navigator
  /\Anavigator/i
end

.outline_subcontentsObject



49
50
51
# File 'lib/muwu/helper/regexp_lib.rb', line 49

def outline_subcontents
  /\Asubcontents/i
end

.outline_textObject



54
55
56
# File 'lib/muwu/helper/regexp_lib.rb', line 54

def outline_text
  /\Atext/i
end

.outline_text_plus_whitespaceObject



59
60
61
# File 'lib/muwu/helper/regexp_lib.rb', line 59

def outline_text_plus_whitespace
  /\Atext\s+/i
end

.outline_titleObject



64
65
66
# File 'lib/muwu/helper/regexp_lib.rb', line 64

def outline_title
  /\Atitle/i
end

.path_two_or_more_dotsObject



69
70
71
# File 'lib/muwu/helper/regexp_lib.rb', line 69

def path_two_or_more_dots
  /\.{2,}/
end