Skip to content

Commit 144504a

Browse files
committed
quickfix: switch from "substr" to "mb_substr" to support utf-8
1 parent 4dc5f2a commit 144504a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function getFunctions(): array
1616
ExpressionFunction::fromPhp('trim', 'trim'),
1717
ExpressionFunction::fromPhp('ucfirst', 'capitalize'),
1818
ExpressionFunction::fromPhp('strtolower', 'toLowerCase'),
19-
ExpressionFunction::fromPhp('substr', 'search'),
19+
ExpressionFunction::fromPhp('mb_substr', 'search'),
2020
ExpressionFunction::fromPhp('strtoupper', 'toUpperCase'),
2121
ExpressionFunction::fromPhp('number_format', 'formatNumber'),
2222
ExpressionFunction::fromPhp('strpos', 'indexOf'),

0 commit comments

Comments
 (0)