We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1456f55 commit 11fcb0eCopy full SHA for 11fcb0e
elementOfHtml.js
@@ -162,9 +162,13 @@ export class ElementOfHtml {
162
let position = declType.toLowerCase().replace('@', '')
163
let text = decl.comment
164
// Pulling text only for a specific position
165
- .match(new RegExp(`(?<=${position}).*? (?=@|$)`, 's'))[0]
166
- // Removing mandatory spaces at the beginning and at the end
167
- .slice(1, -1)
+ .match(new RegExp(`(?<=${position}).*?(?=@|$)`, 's'))[0]
+
+ // Removing spaces necessary for readability of a comment
168
+ if (text.at(0) == ' ')
169
+ text = text.replace(' ', '')
170
+ if (text.at(-1) == ' ')
171
+ text = text.replace(/.$/, '')
172
173
switch (position) {
174
case 'inside':
0 commit comments