Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
fix for #186
Browse files Browse the repository at this point in the history
  • Loading branch information
rwarasaurus committed Jan 31, 2013
1 parent bfcebac commit 5469319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion anchor/models/post.php
Expand Up @@ -20,7 +20,10 @@ public static function slug($slug) {

public static function parse($str) {
// process tags
if(preg_match_all('/[\{\{|\[\[]+([a-z]+)[\}\}|\]\]]+/i', $str, $matches)) {
//$pattern = '/[\{\{|\[\[]+([a-z]+)[\}\}|\]\]]+/i';
$pattern = '/[\{\{]{1}([a-z]+)[\}\}]{1}/i';

if(preg_match_all($pattern, $str, $matches)) {
list($search, $replace) = $matches;

foreach($replace as $index => $key) {
Expand Down

0 comments on commit 5469319

Please sign in to comment.