File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,15 @@ public function renderDebugbar() : string
152152
153153 public static function makeSafeName (string $ name ) : string
154154 {
155- return \strtr (\trim (\strip_tags (\strtolower ($ name ))), [' ' => '- ' ]);
155+ return \strtr (\trim (\strip_tags (\strtolower ($ name ))), [
156+ '· ' => '- ' ,
157+ ': ' => '- ' ,
158+ '( ' => '- ' ,
159+ ') ' => '- ' ,
160+ '/ ' => '- ' ,
161+ '\\' => '- ' ,
162+ ' ' => '- ' ,
163+ ]);
156164 }
157165
158166 public static function convertSize (float | int $ size ) : string
Original file line number Diff line number Diff line change @@ -177,7 +177,10 @@ public function testOptions() : void
177177
178178 public function testMakeSafeName () : void
179179 {
180- self ::assertSame ('foo-bar-baz ' , Debugger::makeSafeName ('Foo Bar <small>Baz</small> ' ));
180+ self ::assertSame (
181+ 'foo-bar--baz- ' ,
182+ Debugger::makeSafeName ('Foo Bar <small>(Baz)</small> ' )
183+ );
181184 }
182185
183186 public function testConvertSize () : void
You can’t perform that action at this time.
0 commit comments