mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-12 15:38:09 +00:00
Fix json output for regexp in rafind2 ##search
This commit is contained in:
parent
5f98cb2ff8
commit
c6743de865
@ -464,7 +464,7 @@ R_API int r_main_rafind2(int argc, const char **argv) {
|
||||
if (opt.ind + 1 == argc && !r_file_is_directory (argv[opt.ind])) {
|
||||
ro.quiet = true;
|
||||
}
|
||||
if (ro.json && ro.mode == R_SEARCH_KEYWORD) {
|
||||
if (ro.json && (ro.mode == R_SEARCH_KEYWORD || ro.mode == R_SEARCH_REGEXP)) {
|
||||
// TODO: remove mode check when all modes use api
|
||||
ro.pj = pj_new ();
|
||||
pj_a (ro.pj);
|
||||
|
Loading…
Reference in New Issue
Block a user