Login works

This commit is contained in:
Ebenezer
2026-03-27 15:44:21 +08:00
parent d5c75c9f5c
commit e7816f78f3
1185 changed files with 198529 additions and 34 deletions

19
backend/node_modules/shebang-command/index.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
'use strict';
const shebangRegex = require('shebang-regex');
module.exports = (string = '') => {
const match = string.match(shebangRegex);
if (!match) {
return null;
}
const [path, argument] = match[0].replace(/#! ?/, '').split(' ');
const binary = path.split('/').pop();
if (binary === 'env') {
return argument;
}
return argument ? `${binary} ${argument}` : binary;
};