Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit 38fea7d

Browse files
committed
Match breaklines without using s flag
1 parent 2be41b4 commit 38fea7d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

javascript.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ sf.parse = function(text) {
244244
// If just 1 tag (Ex [br])
245245
if (sf.tags[t].fillers.length > 1) {
246246
// Lazy matching (?)
247-
regex += "(.*?)";
247+
// Since we can't use the s flag in Firefox,
248+
// This is an alternative that matches it using |
249+
regex += "((.|\n*)*?)";
248250

249251
// Second part of tag
250252
regex += startBracket;

0 commit comments

Comments
 (0)