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.
2 parents 422bb7f + ab52db0 commit 31c246fCopy full SHA for 31c246f
components/string.rst
@@ -301,7 +301,7 @@ Methods to Pad and Trim
301
u('template.html.twig')->trimSuffix('.html'); // 'template.html.twig'
302
u('template.html.twig')->trimSuffix('.twig'); // 'template.html'
303
u('template.html.twig')->trimSuffix('.html.twig'); // 'template'
304
- // when passing an array of prefix/sufix, only the first one found is trimmed
+ // when passing an array of prefix/suffix, only the first one found is trimmed
305
u('file-image-0001.png')->trimPrefix(['file-', 'image-']); // 'image-0001.png'
306
u('template.html.twig')->trimSuffix(['.twig', '.html']); // 'template.html'
307
0 commit comments