Module: Muwu::Helper::RegexpLib

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

Class Method Summary collapse

Class Method Details

.file_ext_hamlObject



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

def file_ext_haml
  /.haml\z/i
end

.file_ext_mdObject



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

def file_ext_md
  /.md\z/i
end

.haml_headingObject



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

def haml_heading
  /\A%h\d*/i
end

.haml_heading_plus_whitespaceObject



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

def haml_heading_plus_whitespace
  /\A%h\d*\s*/i
end

.markdown_headingObject



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

def markdown_heading
  /\A#+/
end

.markdown_heading_plus_whitespaceObject



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

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

.metadata_key_date_of_this_editionObject



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

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

.not_alphanumeric_underscore_or_single_dotObject



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

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

.outline_contentsObject



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

def outline_contents
  /\Acontents/i
end

.outline_metadataObject



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

def 
  /\Ametadata/i
end

.outline_navigatorObject



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

def outline_navigator
  /\Anavigator/i
end

.outline_subcontentsObject



74
75
76
# File 'lib/muwu/helper/regexp_lib.rb', line 74

def outline_subcontents
  /\Asubcontents/i
end

.outline_textObject



79
80
81
# File 'lib/muwu/helper/regexp_lib.rb', line 79

def outline_text
  /\Atext/i
end

.outline_text_plus_whitespaceObject



84
85
86
# File 'lib/muwu/helper/regexp_lib.rb', line 84

def outline_text_plus_whitespace
  /\Atext\s+/i
end

.outline_titleObject



89
90
91
# File 'lib/muwu/helper/regexp_lib.rb', line 89

def outline_title
  /\Atitle/i
end

.path_two_or_more_dotsObject



94
95
96
# File 'lib/muwu/helper/regexp_lib.rb', line 94

def path_two_or_more_dots
  /\.{2,}/
end