Skip to content

Commit

Permalink
Merge pull request #6 from ivansky/patch-1
Browse files Browse the repository at this point in the history
Fix bug using PCRE_MULTILINE with a caret
  • Loading branch information
lahdekorpi committed May 16, 2014
2 parents efe72b6 + 9a392c9 commit 6c6b563
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 6c6b563

Please sign in to comment.