@@ -59,7 +59,7 @@ module.exports = {
59
59
{
60
60
rules : {
61
61
"body-prose" : ( { raw } : { raw : any } ) => {
62
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
62
+ let rawStr = Helpers . convertAnyToString ( raw , "raw" ) ;
63
63
return Plugins . bodyProse ( rawStr ) ;
64
64
} ,
65
65
@@ -91,14 +91,20 @@ module.exports = {
91
91
) ;
92
92
} ,
93
93
94
- "footer-notes-misplacement" : ( { raw } : { raw : any } ) => {
95
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
96
- return Plugins . footerNotesMisplacement ( rawStr ) ;
94
+ "footer-notes-misplacement" : ( { body } : { body : any } ) => {
95
+ let bodyStr = Helpers . convertAnyToString (
96
+ body ,
97
+ "body"
98
+ )
99
+ return Plugins . footerNotesMisplacement ( bodyStr ) ;
97
100
} ,
98
101
99
- "footer-references-existence" : ( { raw } : { raw : any } ) => {
100
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
101
- return Plugins . footerReferencesExistence ( rawStr ) ;
102
+ "footer-references-existence" : ( { body } : { body : any } ) => {
103
+ let bodyStr = Helpers . convertAnyToString (
104
+ body ,
105
+ "body"
106
+ )
107
+ return Plugins . footerReferencesExistence ( bodyStr ) ;
102
108
} ,
103
109
104
110
"prefer-slash-over-backslash" : ( {
@@ -114,7 +120,7 @@ module.exports = {
114
120
} ,
115
121
116
122
"proper-issue-refs" : ( { raw } : { raw : any } ) => {
117
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
123
+ let rawStr = Helpers . convertAnyToString ( raw , "raw" ) ;
118
124
return Plugins . properIssueRefs ( rawStr ) ;
119
125
} ,
120
126
@@ -165,12 +171,18 @@ module.exports = {
165
171
} ,
166
172
167
173
"body-soft-max-line-length" : (
168
- { raw } : { raw : any } ,
174
+ { body } : { body : any } ,
169
175
_ : any ,
170
176
maxLineLength : number
171
177
) => {
172
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
173
- return Plugins . bodySoftMaxLineLength ( rawStr , maxLineLength ) ;
178
+ let bodyStr = Helpers . convertAnyToString (
179
+ body ,
180
+ "body"
181
+ ) ;
182
+ return Plugins . bodySoftMaxLineLength (
183
+ bodyStr ,
184
+ maxLineLength
185
+ ) ;
174
186
} ,
175
187
176
188
"trailing-whitespace" : ( { raw } : { raw : any } ) => {
0 commit comments