Skip to content

Commit

Permalink
fix: crlf not being split
Browse files Browse the repository at this point in the history
  • Loading branch information
savioxavier committed Feb 9, 2022
1 parent 0294780 commit 1cf120e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .prettierrc
@@ -0,0 +1,3 @@
{
"singleQuote": true
}
2 changes: 1 addition & 1 deletion commands/neofetch.js
Expand Up @@ -102,7 +102,7 @@ export async function execute(interaction) {
// Read file.txt and split on new lines
const fileContents = fs
.readFileSync(path.resolve(__dirname, `../assets/${distro}.txt`), 'utf8')
.split('\n');
.split(/[\r\n]+/);

// Additional whitespace for the ascii arts
// 'discord' is exempted as the ascii art is already too big
Expand Down

0 comments on commit 1cf120e

Please sign in to comment.