Skip to content

Commit 0a3d3d1

Browse files
CLOUDP-304967: Ignore inline table with linebreak
1 parent 96d33c6 commit 0a3d3d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/spectral/ipa/rulesets/functions/IPA117DescriptionEndsWithPeriod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const ERROR_MESSAGE_PERIOD = 'Descriptions must end with a full stop(.).';
1111

1212
export default (input, opts, { path }) => {
1313
// Ignore missing descriptions or descriptions that ends with an inline table
14-
if (!input['description'] || input['description'].endsWith('|')) {
14+
if (!input['description'] || input['description'].endsWith('|') || input['description'].endsWith('|\n')) {
1515
return;
1616
}
1717

0 commit comments

Comments
 (0)