Skip to content

Commit

Permalink
Update list of file extensions considered scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Feb 24, 2022
1 parent d087e7f commit 333e991
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions libr/core/libs.c
@@ -1,4 +1,4 @@
/* radare - LGPL - Copyright 2009-2021 - pancake */
/* radare2 - LGPL - Copyright 2009-2022 - pancake */

#include "r_core.h"
#include "config.h"
Expand Down Expand Up @@ -117,13 +117,18 @@ static bool __isScriptFilename(const char *name) {
const char *ext = r_str_lchr (name, '.');
if (ext) {
ext++;
if (!strcmp (ext, "py")
|| !strcmp (ext, "js")
|| !strcmp (ext, "v")
|| !strcmp (ext, "c")
|| !strcmp (ext, "vala")
|| !strcmp (ext, "pl")
|| !strcmp (ext, "lua")) {
if (0
|| !strcmp (ext, "c")
|| !strcmp (ext, "go")
|| !strcmp (ext, "js")
|| !strcmp (ext, "lua")
|| !strcmp (ext, "pl")
|| !strcmp (ext, "py")
|| !strcmp (ext, "qjs")
|| !strcmp (ext, "rs")
|| !strcmp (ext, "v")
|| !strcmp (ext, "vala")
|| !strcmp (ext, "wren")) {
return true;
}
}
Expand Down

0 comments on commit 333e991

Please sign in to comment.