Class: Pubid::Api::Parser

Inherits:
Parslet::Parser
  • Object
show all
Defined in:
lib/pubid/api/parser.rb

Instance Method Summary collapse

Instance Method Details

#parse(input) ⇒ Object

Preprocessing to normalize common typos



133
134
135
136
137
# File 'lib/pubid/api/parser.rb', line 133

def parse(input)
  # Normalize MPMP typo to MPMS
  normalized = input.gsub("API MPMP", "API MPMS")
  super(normalized)
end