chore(tests): fix failing generateKeypair test by replacing pattern

This commit is contained in:
Erica Marigold 2024-03-27 22:36:44 +05:30
parent f8e995546c
commit a4291ac2e8
No known key found for this signature in database
GPG key ID: 2768CC0C23D245D1

View file

@ -1,6 +1,6 @@
local wg = require("../out/").wireguard
local BASE64_PAT = "^(?:%a%d+/?){4}*(?:%a%d+/?){2}==|(?:%a%d+/?){3}=?$"
local BASE64_PAT = "^[%w%+%/=]-=?%w=*$"
local keypair = wg:generateKeypair()