We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf39904 commit 9843523Copy full SHA for 9843523
components/string.rst
@@ -314,8 +314,8 @@ Methods to Pad and Trim
314
u('template.html.twig')->trimSuffix('.twig'); // 'template.html'
315
u('template.html.twig')->trimSuffix('.html.twig'); // 'template'
316
// when passing an array of prefix/sufix, only the first one found is trimmed
317
- u('file-image-0001.png')->trimPrefix(['file', 'file-']); // '-image-0001.png'
318
- u('template.html.twig')->trimSuffix(['.twig', '.html']); // 'template.html'
+ u('file-image-0001.png')->trimPrefix(['file-', 'image-']); // 'image-0001.png'
+ u('template.html.twig')->trimSuffix(['.twig', '.html']); // 'template.html'
319
320
.. versionadded:: 5.4
321
0 commit comments