@@ -1387,6 +1387,11 @@ void add_user_command(String name, Object command, Dict(user_command) *opts, int
1387
1387
LuaRef luaref = LUA_NOREF;
1388
1388
LuaRef compl_luaref = LUA_NOREF;
1389
1389
1390
+
if (mb_islower(name.data[0])) {
1391
+
api_set_error(err, kErrorTypeValidation, "'name' must begin with an uppercase letter");
1392
+
goto err;
1393
+
}
1394
+
1390
1395
if (HAS_KEY(opts->range) && HAS_KEY(opts->count)) {
1391
1396
api_set_error(err, kErrorTypeValidation, "'range' and 'count' are mutually exclusive");
1392
1397
goto err;
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4