Skip to content

Commit 948446a

Browse files
committed
Fix parsing of PEAR version number as semver
1 parent d02b58b commit 948446a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/phpDebug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class PhpDebugSession extends vscode.DebugSession {
244244
// raise default of 32
245245
await connection.sendFeatureSetCommand('max_children', '10000');
246246
// don't truncate long variable values
247-
await connection.sendFeatureSetCommand('max_data', semver.lt(initPacket.engineVersion, '2.2.4') ? '10000' : '0');
247+
await connection.sendFeatureSetCommand('max_data', semver.lt(initPacket.engineVersion.replace(/((?:dev|alpha|beta|RC|stable)\d*)$/, '-$1'), '2.2.4') ? '10000' : '0');
248248
// request breakpoints from VS Code
249249
await this.sendEvent(new vscode.InitializedEvent());
250250
} catch (error) {

0 commit comments

Comments
 (0)