casbin 5.24.3 → 5.24.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +1 -1
- package/lib/cjs/util/util.js +2 -2
- package/lib/esm/util/util.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [5.24.4](https://github.com/casbin/node-casbin/compare/v5.24.3...v5.24.4) (2023-03-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **./src/util/util.ts:** fixed unwanted replacement of .r in evals according to issue [#438](https://github.com/casbin/node-casbin/issues/438) ([#439](https://github.com/casbin/node-casbin/issues/439)) ([39878be](https://github.com/casbin/node-casbin/commit/39878be7e22ff9f18c0898c5828328bc1cc95aba))
|
|
7
|
+
|
|
1
8
|
## [5.24.3](https://github.com/casbin/node-casbin/compare/v5.24.2...v5.24.3) (2023-02-27)
|
|
2
9
|
|
|
3
10
|
|
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|

|
|
24
24
|
|
|
25
|
-
`node-casbin` is a powerful and efficient open-source access control library for Node.JS projects. It provides support for enforcing authorization based on various [access control models](https
|
|
25
|
+
`node-casbin` is a powerful and efficient open-source access control library for Node.JS projects. It provides support for enforcing authorization based on various [access control models](https://wikipedia.org/wiki/Computer_security_model).
|
|
26
26
|
|
|
27
27
|
## All the languages supported by Casbin:
|
|
28
28
|
|
package/lib/cjs/util/util.js
CHANGED
|
@@ -18,8 +18,8 @@ exports.bracketCompatible = exports.customIn = exports.deepCopy = exports.genera
|
|
|
18
18
|
// because the expression evaluation doesn't support such variable names.
|
|
19
19
|
const persist_1 = require("../persist");
|
|
20
20
|
function escapeAssertion(s) {
|
|
21
|
-
s = s.replace(/r\./g, 'r_');
|
|
22
|
-
s = s.replace(/p\./g, 'p_');
|
|
21
|
+
s = s.replace(/(?<!\w)r\./g, 'r_');
|
|
22
|
+
s = s.replace(/(?<!\w)p\./g, 'p_');
|
|
23
23
|
return s;
|
|
24
24
|
}
|
|
25
25
|
exports.escapeAssertion = escapeAssertion;
|
package/lib/esm/util/util.js
CHANGED
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
// because the expression evaluation doesn't support such variable names.
|
|
16
16
|
import { mustGetDefaultFileSystem } from '../persist';
|
|
17
17
|
function escapeAssertion(s) {
|
|
18
|
-
s = s.replace(/r\./g, 'r_');
|
|
19
|
-
s = s.replace(/p\./g, 'p_');
|
|
18
|
+
s = s.replace(/(?<!\w)r\./g, 'r_');
|
|
19
|
+
s = s.replace(/(?<!\w)p\./g, 'p_');
|
|
20
20
|
return s;
|
|
21
21
|
}
|
|
22
22
|
// removeComments removes the comments starting with # in the text.
|
package/package.json
CHANGED