File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,9 @@ public function generate( $name = null ) {
369
369
public function generateSvg ( $ name = null ) {
370
370
if ( $ name !== null ) {
371
371
$ this ->name = $ name ;
372
- $ this ->generated_initials = $ this ->initials_generator ->keepCase ( $ this ->getKeepCase () )->generate ( $ name );
372
+ $ this ->generated_initials = $ this ->initials_generator ->keepCase ( $ this ->getKeepCase () )
373
+ ->allowSpecialCharacters ( $ this ->getAllowSpecialCharacters () )
374
+ ->generate ( $ name );
373
375
}
374
376
375
377
return $ this ->makeSvgAvatar ();
@@ -381,7 +383,10 @@ public function generateSvg( $name = null ) {
381
383
* @return string
382
384
*/
383
385
public function getInitials () {
384
- return $ this ->initials_generator ->keepCase ( $ this ->getKeepCase () )->name ( $ this ->name )->getInitials ();
386
+ return $ this ->initials_generator ->keepCase ( $ this ->getKeepCase () )
387
+ ->allowSpecialCharacters ( $ this ->getAllowSpecialCharacters () )
388
+ ->name ( $ this ->name )
389
+ ->getInitials ();
385
390
}
386
391
387
392
/**
You can’t perform that action at this time.
0 commit comments