summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2010-01-18 22:42:59 +0100
committerDerek Allard <derek.allard@ellislab.com>2010-01-18 22:42:59 +0100
commit9e94ee10520a9d95eab1b1a0e9c9b27d39b7214a (patch)
tree18816cf23b40d141908d387f1aaff445fdc786ea
parentf947e0a744833b95d2b732a3910bb80e1d66c7b9 (diff)
nongreedy regex
-rw-r--r--system/libraries/Parser.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Parser.php b/system/libraries/Parser.php
index 161de613f..9387f1a9a 100644
--- a/system/libraries/Parser.php
+++ b/system/libraries/Parser.php
@@ -197,7 +197,7 @@ class CI_Parser {
*/
function _match_pair($string, $variable)
{
- if ( ! preg_match("|" . preg_quote($this->l_delim) . $variable . preg_quote($this->r_delim) . "(.+) ". preg_quote($this->l_delim) . '/' . $variable . preg_quote($this->r_delim) . "|s", $string, $match))
+ if ( ! preg_match("|" . preg_quote($this->l_delim) . $variable . preg_quote($this->r_delim) . "(.+?) ". preg_quote($this->l_delim) . '/' . $variable . preg_quote($this->r_delim) . "|s", $string, $match))
{
return FALSE;
}