Skip to content

Commit

Permalink
Fix bug using PCRE_MULTILINE with a caret
Browse files Browse the repository at this point in the history
Replace RN to N for patterns with PCRE_MULTILINE modifier.
  • Loading branch information
Ivan committed May 16, 2014
1 parent efe72b6 commit 9a392c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wiky.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ class wiky {

public function __construct($analyze=false) {
$this->patterns=array(
"/\r\n/",

// Headings
"/^==== (.+?) ====$/m", // Subsubheading
"/^=== (.+?) ===$/m", // Subheading
Expand Down Expand Up @@ -57,6 +59,8 @@ public function __construct($analyze=false) {
"/^[^><\n\r]+$/m", // Ones with no elements
);
$this->replacements=array(
"\n",

// Headings
"<h3>$1</h3>",
"<h2>$1</h2>",
Expand Down

0 comments on commit 9a392c9

Please sign in to comment.