@@ -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,14 @@ 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 ( body , "body" ) ;
96
+ return Plugins . footerNotesMisplacement ( bodyStr ) ;
97
97
} ,
98
98
99
- "footer-references-existence" : ( { raw } : { raw : any } ) => {
100
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
101
- return Plugins . footerReferencesExistence ( rawStr ) ;
99
+ "footer-references-existence" : ( { body } : { body : any } ) => {
100
+ let bodyStr = Helpers . convertAnyToString ( body , "body" ) ;
101
+ return Plugins . footerReferencesExistence ( bodyStr ) ;
102
102
} ,
103
103
104
104
"prefer-slash-over-backslash" : ( {
@@ -114,7 +114,7 @@ module.exports = {
114
114
} ,
115
115
116
116
"proper-issue-refs" : ( { raw } : { raw : any } ) => {
117
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
117
+ let rawStr = Helpers . convertAnyToString ( raw , "raw" ) ;
118
118
return Plugins . properIssueRefs ( rawStr ) ;
119
119
} ,
120
120
@@ -165,12 +165,15 @@ module.exports = {
165
165
} ,
166
166
167
167
"body-soft-max-line-length" : (
168
- { raw } : { raw : any } ,
168
+ { body } : { body : any } ,
169
169
_ : any ,
170
170
maxLineLength : number
171
171
) => {
172
- let rawStr = Helpers . convertAnyToString ( raw , "raw" ) . trim ( ) ;
173
- return Plugins . bodySoftMaxLineLength ( rawStr , maxLineLength ) ;
172
+ let bodyStr = Helpers . convertAnyToString ( body , "body" ) ;
173
+ return Plugins . bodySoftMaxLineLength (
174
+ bodyStr ,
175
+ maxLineLength
176
+ ) ;
174
177
} ,
175
178
176
179
"trailing-whitespace" : ( { raw } : { raw : any } ) => {
0 commit comments