Closed Huy-DNA closed 7 months ago
The recent updates to the dbml-parse
package focus on enhancing the handling of note content across various files. By trimming top empty lines and adjusting newline character placements, the updates ensure a more consistent and correct formatting of notes within DBML schema definitions. These changes improve the readability and structure of notes in DBML files, affecting both the interpretation logic and the output JSON files.
File Path | Change Summary |
---|---|
.../lib/interpreter/utils.ts |
Updated normalizeNoteContent function to trim top empty lines and adjust minimum indentation for non-empty lines. |
.../tests/interpreter/input/note_normalize_with_top_empty_lines.in.dbml |
Introduced DBML schema definitions for follows , users , and posts tables with fields and notes. |
.../tests/interpreter/output/*.out.json |
Corrected note formatting by removing leading newlines and extra newlines at the beginning, ensuring proper rendering of headings and lists. Adjusted newline character placement in notes for better consistency. |
🐰✨
In fields of green, beneath the sky so blue,
A rabbit hopped, with updates fresh and new.
"No more," it said, "will notes start with a space,
For I've trimmed them down, put them in their place.
Now headings gleam, and lists stand proud and tall,
In DBML files, making sense of it all."
🌟📝🐾
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary
Issue
(issue link here)
Lasting Changes (Technical)
(please list down: code changes/things that have wide-effect; new libraries/functions added that can be used by others; examples below)
class EmailValidator
to validate email address' validity)Tenant#is_trial?
check)Checklist
Please check directly on the box once each of these are done
Summary by CodeRabbit