Skip to content

Commit

Permalink
Fix regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
r0wanda authored Oct 15, 2024
1 parent c4a3708 commit 239a104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ export default class Element extends Node {
if (!this.opts.tags) {
const tags = [];
// see: https://en.wikipedia.org/wiki/Newline#Representation
const t = s.split(/[\n\r]/);
const t = s.split(/\r\n|\n/);
for (let i = 0; i < t.length; i++) {
tags.push({
type: 'content',
Expand Down

0 comments on commit 239a104

Please sign in to comment.