EV_COMMENT_TAG = 'minimap' EV_NAME_COMMENT_TAG = 'minimap name' EV_DESC_COMMENT_TAG = 'minimap desc'Snippet:
# Scan for name/desc commands if command.code == 108 if command.parameters[0] =~ /<#{Regexp.escape(Minimap::EV_NAME_COMMENT_TAG)}: ([^>]*)>/ix name = $1 elsif command.parameters[0] =~ /<#{Regexp.escape(Minimap::EV_DESC_COMMENT_TAG)}: ([^>]*)>/ix desc = $1 end endThis works perfectly for single-line comment tags.
But if I have this multi-line comment-tag:
<minimap desc: line 1
line 2
last line.>
line 2
last line.>
["line 1"] # output from: p command.parametersThe rest of the text is not there?