Comparing version 5.13.0 to 5.13.1
@@ -0,1 +1,9 @@ | ||
## [5.13.1](https://github.com/casbin/node-casbin/compare/v5.13.0...v5.13.1) (2022-02-22) | ||
### Bug Fixes | ||
* 'eval' not detected ([86e2add](https://github.com/casbin/node-casbin/commit/86e2add7c5aaa7901d21c1c4b9cb8e6d0b8bef75)) | ||
* created two regex expressions ([de5f2f4](https://github.com/casbin/node-casbin/commit/de5f2f4f27f40941b125bf068b8f90e44ba69fb1)) | ||
# [5.13.0](https://github.com/casbin/node-casbin/compare/v5.12.0...v5.13.0) (2022-01-25) | ||
@@ -2,0 +10,0 @@ |
@@ -106,3 +106,4 @@ "use strict"; | ||
exports.writeFile = writeFile; | ||
const evalReg = new RegExp(/\beval\(([^),]*)\)/g); | ||
const evalRegG = new RegExp(/\beval\(([^),]*)\)/g); | ||
const evalReg = new RegExp(/\beval\(([^),]*)\)/); | ||
// hasEval determine whether matcher contains function eval | ||
@@ -120,3 +121,3 @@ function hasEval(s) { | ||
function getEvalValue(s) { | ||
const subMatch = s.match(evalReg); | ||
const subMatch = s.match(evalRegG); | ||
const rules = []; | ||
@@ -123,0 +124,0 @@ if (!subMatch) { |
@@ -93,3 +93,4 @@ // Copyright 2017 The casbin Authors. All Rights Reserved. | ||
} | ||
const evalReg = new RegExp(/\beval\(([^),]*)\)/g); | ||
const evalRegG = new RegExp(/\beval\(([^),]*)\)/g); | ||
const evalReg = new RegExp(/\beval\(([^),]*)\)/); | ||
// hasEval determine whether matcher contains function eval | ||
@@ -105,3 +106,3 @@ function hasEval(s) { | ||
function getEvalValue(s) { | ||
const subMatch = s.match(evalReg); | ||
const subMatch = s.match(evalRegG); | ||
const rules = []; | ||
@@ -108,0 +109,0 @@ if (!subMatch) { |
{ | ||
"name": "casbin", | ||
"version": "5.13.0", | ||
"version": "5.13.1", | ||
"description": "An authorization library that supports access control models like ACL, RBAC, ABAC in Node.JS", | ||
@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js", |
536345
12754