Comparing version 5.19.1 to 5.19.2
@@ -0,1 +1,8 @@ | ||
## [5.19.2](https://github.com/casbin/node-casbin/compare/v5.19.1...v5.19.2) (2022-11-12) | ||
### Bug Fixes | ||
* Revert "fix: escape assertion bug ([#394](https://github.com/casbin/node-casbin/issues/394))" ([#398](https://github.com/casbin/node-casbin/issues/398)) ([6127584](https://github.com/casbin/node-casbin/commit/61275848007386550dc211e3ed0b13388e654a29)) | ||
## [5.19.1](https://github.com/casbin/node-casbin/compare/v5.19.0...v5.19.1) (2022-10-04) | ||
@@ -2,0 +9,0 @@ |
@@ -40,6 +40,4 @@ "use strict"; | ||
function escapeAssertion(s) { | ||
s = ' ' + s; | ||
s = s.replace(/(?<=[\(| ])r\./g, 'r_'); | ||
s = s.replace(/(?<=[\(| ])p\./g, 'p_'); | ||
s = s.trim(); | ||
s = s.replace(/r\./g, 'r_'); | ||
s = s.replace(/p\./g, 'p_'); | ||
return s; | ||
@@ -46,0 +44,0 @@ } |
@@ -18,6 +18,4 @@ // Copyright 2017 The casbin Authors. All Rights Reserved. | ||
function escapeAssertion(s) { | ||
s = ' ' + s; | ||
s = s.replace(/(?<=[\(| ])r\./g, 'r_'); | ||
s = s.replace(/(?<=[\(| ])p\./g, 'p_'); | ||
s = s.trim(); | ||
s = s.replace(/r\./g, 'r_'); | ||
s = s.replace(/p\./g, 'p_'); | ||
return s; | ||
@@ -24,0 +22,0 @@ } |
{ | ||
"name": "casbin", | ||
"version": "5.19.1", | ||
"version": "5.19.2", | ||
"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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
569589
224
13463