diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-14 13:12:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-14 13:12:06 +0900 |
| commit | 614616d4ceeb78dcf22df3e36a0fceb4c2d110c8 (patch) | |
| tree | dc036aca8b4b9d10fb6caf002219759bf93db58f /crates/shirabe/src/console | |
| parent | d7c686f6c488739fc9d061bb0f89d73e6445fade (diff) | |
| download | php-shirabe-614616d4ceeb78dcf22df3e36a0fceb4c2d110c8.tar.gz php-shirabe-614616d4ceeb78dcf22df3e36a0fceb4c2d110c8.tar.zst php-shirabe-614616d4ceeb78dcf22df3e36a0fceb4c2d110c8.zip | |
refactor(pcre): return bool/usize from preg_*2 shim helpers
preg_match2 returns bool and the preg_match_all* helpers return usize
(the match count is never negative), matching how callers use them.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/console')
| -rw-r--r-- | crates/shirabe/src/console/application.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/crates/shirabe/src/console/application.rs b/crates/shirabe/src/console/application.rs index ad0073f..2bd4017 100644 --- a/crates/shirabe/src/console/application.rs +++ b/crates/shirabe/src/console/application.rs @@ -2711,8 +2711,7 @@ impl Application { Some(&mut m), 0, offset as usize, - ) == 1 - { + ) { let m0 = m[&shirabe_php_shim::CaptureKey::ByIndex(0)] .as_deref() .unwrap_or(""); |
