lib/gm/notepad/parameters/table_lookup.rb in gm-notepad-0.0.11 vs lib/gm/notepad/parameters/table_lookup.rb in gm-notepad-0.0.12
- old
+ new
@@ -3,10 +3,10 @@
module Notepad
module Parameters
# Responsible for teasing apart the table logic
class TableLookup
def initialize(text:, roll_dice: false)
- @text = text
+ @text = text.strip
@role_dice = false
@parameters = {}
extract_parameters!
roll_them_bones! if roll_dice
end