limitBlankLines
Import from @varavel/vdl-plugin-sdk/utils/strings.
Limits the number of consecutive blank lines in a string.
Parameters
| Parameter | Type | Default value | Description |
|---|---|---|---|
str |
string |
undefined |
The string to process. |
maxConsecutive |
number |
0 |
The maximum number of consecutive blank lines allowed. Defaults to 0 (no blank lines allowed). |
Returns
string
The string with consecutive blank lines limited.