forked from olcxjas-softworks/LarpixClient
Update gitignore (sorry)
This commit is contained in:
parent
a8f8c4d7ad
commit
cca8b02fea
6604 changed files with 1219661 additions and 4 deletions
12
electron/node_modules/untildify/index.js
generated
vendored
Normal file
12
electron/node_modules/untildify/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
'use strict';
|
||||
const os = require('os');
|
||||
|
||||
const homeDirectory = os.homedir();
|
||||
|
||||
module.exports = pathWithTilde => {
|
||||
if (typeof pathWithTilde !== 'string') {
|
||||
throw new TypeError(`Expected a string, got ${typeof pathWithTilde}`);
|
||||
}
|
||||
|
||||
return homeDirectory ? pathWithTilde.replace(/^~(?=$|\/|\\)/, homeDirectory) : pathWithTilde;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue