Skip to content

Commit 17d10b0

Browse files
authored
feat: update PCRE dependency to lrexlib-pcre2 (#163)
* feat: upgrade to lrexlib-pcre2 - update rockspec dependency - update rockspec template - rex_pcre2 Fixes #156 * ci: install correct dependencies for PCRE2
1 parent 7ee85ed commit 17d10b0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.github/luarocks-template.rockspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ description = {
1515
dependencies = {
1616
"lua >= 5.1",
1717
"lualogging >= 1.5.1",
18-
"lrexlib-pcre >= 2.9.1",
18+
"lrexlib-pcre2 >= 2.9.2",
1919
"luaposix = 35.1-1"
2020
}
2121
build = {

.github/workflows/build.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
do
6060
sleep 1
6161
done
62-
until luarocks install lrexlib-pcre
62+
until luarocks install lrexlib-pcre2
6363
do
6464
sleep 1
6565
done
@@ -109,7 +109,7 @@ jobs:
109109
- name: Install dependencies
110110
run: |
111111
luarocks install lualogging
112-
luarocks install lrexlib-pcre
112+
luarocks install lrexlib-pcre2
113113
luarocks install luaposix
114114
luarocks install luasocket
115115
luarocks install busted

casbin-1.41.1-1.rockspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ description = {
1717
dependencies = {
1818
"lua >= 5.1",
1919
"lualogging >= 1.5.1",
20-
"lrexlib-pcre >= 2.9.1",
20+
"lrexlib-pcre2 >= 2.9.2",
2121
"luaposix = 35.1-1"
2222
}
2323
build = {

src/util/BuiltInFunctions.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
--See the License for the specific language governing permissions and
1313
--limitations under the License.
1414

15-
local rex = require ("rex_pcre")
15+
local rex = require ("rex_pcre2")
1616
local posix = require("posix.fnmatch")
1717

1818
local BuiltInFunctions = {}

0 commit comments

Comments
 (0)