Skip to content

Commit

Permalink
Added processing for new lines.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulyanov-programmer committed Oct 17, 2024
1 parent d1d52f5 commit a921dd3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ function breakOut(child, after) {
/* comment about the rule below /*
.rule {}
*/
if (parentRule.includes(prevNode.toString() + node.toString())) {
let regexp = new RegExp(`${prevNode.toString()} *\n *${node.toString()}`)

if (parentRule.match(regexp)) {
changeParent = false
after.after(node).after(prevNode)
}
Expand Down

0 comments on commit a921dd3

Please sign in to comment.