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 b647f7c commit 3da25feCopy full SHA for 3da25fe
src/parser.js
@@ -581,7 +581,7 @@ export default class Parser {
581
if (space.endsWith(' ') && rawSpace.endsWith(' ')) {
582
spaces.before = space.slice(0, space.length - 1);
583
raws.spaces.before = rawSpace.slice(0, rawSpace.length - 1);
584
- } else if (space.startsWith(' ') && rawSpace.startsWith(' ')) {
+ } else if (space[0] === ' ' && rawSpace[0] === ' ') {
585
spaces.after = space.slice(1);
586
raws.spaces.after = rawSpace.slice(1);
587
} else {
0 commit comments