mirror of
https://github.com/SikongJueluo/cc-utils.git
synced 2025-11-05 03:37:50 +08:00
reconstruct the access control cli
This commit is contained in:
6
src/lib/common.ts
Normal file
6
src/lib/common.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export function parseBoolean(obj: string): boolean | undefined {
|
||||
const str = obj.toLowerCase();
|
||||
if (str === "true") return true;
|
||||
else if (str === "false") return false;
|
||||
else return undefined;
|
||||
}
|
||||
Reference in New Issue
Block a user