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 854343f commit 985e6a9Copy full SHA for 985e6a9
AbstractUnicodeString.php
@@ -492,7 +492,7 @@ public function width(bool $ignoreAnsiDecoration = true): int
492
foreach (explode("\n", $s) as $s) {
493
if ($ignoreAnsiDecoration) {
494
$s = preg_replace('/(?:\x1B(?:
495
- \[ [\x30-\x3F]*+ [\x20-\x2F]*+ [0x40-\x7E]
+ \[ [\x30-\x3F]*+ [\x20-\x2F]*+ [\x40-\x7E]
496
| [P\]X^_] .*? \x1B\\\\
497
| [\x41-\x7E]
498
)|[\p{Cc}\x7F]++)/xu', '', $s);
0 commit comments