Skip to content

Commit 9658c14

Browse files
committed
fix: Accept lowercase commands (\r === \R)
1 parent 25f04a4 commit 9658c14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "igdm",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "Send and receive Instagram direct message through CLI.",
55
"keywords": [
66
"instagram",
@@ -68,4 +68,4 @@
6868
"instagram-private-api": "^1.43.3",
6969
"rxjs": "^6.6.3"
7070
}
71-
}
71+
}

src/domain/direct-messaging.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export default class DirectMessaging {
9090
},
9191
]);
9292

93-
switch (input) {
93+
switch ((input as string).toLowerCase()) {
9494
case '\\l': return this.init();
9595
case '\\r':
9696
this.threads = await this.getInbox();

0 commit comments

Comments
 (0)