Skip to content

Commit dc21d2f

Browse files
committed
Simplify Runtime-error stripping (regex lookbehind didn't match)
1 parent bd8c2cc commit dc21d2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/phpunit-tests-turso.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ jobs:
551551
new = (
552552
"\t\t\t$msg = $e->getMessage();\n"
553553
"\t\t\t// Normalise Turso-specific decoration to SQLite format.\n"
554-
"\t\t\t$msg = preg_replace( '/(?<=: )Runtime error: /', '', $msg );\n"
554+
"\t\t\t$msg = str_replace( 'Runtime error: ', '', $msg );\n"
555555
"\t\t\t$msg = preg_replace( '/ \\(19\\)$/', '', $msg );\n"
556556
"\t\t\tthrow $this->new_driver_exception( $msg, $e->getCode(), $e );"
557557
)

0 commit comments

Comments
 (0)