Skip to content

Commit

Permalink
add preload["rex_pcre"], it equals preload["rex"]
Browse files Browse the repository at this point in the history
close #269
  • Loading branch information
zhaozg committed Oct 15, 2022
1 parent 2ba9883 commit 8eae450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ static lua_State* vm_acquire(){

#ifdef WITH_PCRE
lua_pushcfunction(L, luaopen_rex_pcre);
lua_pushvalue(L, -1);
lua_setfield(L, -3, "rex_pcre");
lua_setfield(L, -2, "rex");
#endif

Expand Down

0 comments on commit 8eae450

Please sign in to comment.