Skip to content

Commit

Permalink
Better statement separating regex
Browse files Browse the repository at this point in the history
Split on lines starting with - and being surrounded by at least on
newline before, but arbitrary amounts of newlines before and after.
The dash can be followed by anything (having seen both '}' and 'ä' in
real examples)
  • Loading branch information
bonflintstone committed Jan 22, 2025
1 parent f8133bc commit bca9404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cmxl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def self.config
@config
end
@config = {
statement_separator: /\n-\s*\n/m,
statement_separator: /\R+-[^\n\r]*\R*/m,
raise_line_format_errors: true,
strip_headers: false
}
Expand Down

0 comments on commit bca9404

Please sign in to comment.