Content deleted Content added
in fact, it is probably safe to use the basic string functions throughout, and it reduces processing time by a large factor |
codes in prefixes to lower case; |
||
Line 53:
table.insert (descriptions, '\"' .. desc .. '\"'); -- save the description wrapped in quote marks
elseif string.find (line, 'Prefix: .+') then -- if this line is a prefix line
table.insert (prefixes, '\"' .. string.match (line, 'Prefix: (.+)'):lower() .. '\"'); -- extract and save the prefix wrapped in quote marks
elseif string.find (line, 'Comments: .+') then -- if this line is a comments line
in_comments = true;
|