summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2015-08-07 12:29:11 +0200
committerAndrey Andreev <narf@devilix.net>2015-08-07 12:29:11 +0200
commit9bb9469cabd15eb8e8e15fa3b2740bf92bc16ff4 (patch)
treedb99723e3c9f8ebe1dd4266631438f2a02adac8e /system
parent36bd3413be0807fe358d87856b3a2f42047764fd (diff)
Fix #4023
Close #4024
Diffstat (limited to 'system')
-rw-r--r--system/helpers/string_helper.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/helpers/string_helper.php b/system/helpers/string_helper.php
index 28e6ab15f..637835160 100644
--- a/system/helpers/string_helper.php
+++ b/system/helpers/string_helper.php
@@ -253,7 +253,7 @@ if ( ! function_exists('increment_string'))
*/
function increment_string($str, $separator = '_', $first = 1)
{
- preg_match('/(.+)' . preg_quote($separator) . '([0-9]+)$/', $str, $match);
+ preg_match('/(.+)'.preg_quote($separator, '/').'([0-9]+)$/', $str, $match);
return isset($match[2]) ? $match[1].$separator.($match[2] + 1) : $str.$separator.$first;
}
}