Skip to content
This repository was archived by the owner on Nov 7, 2024. It is now read-only.

Commit ef66637

Browse files
authored
Merge pull request #42 from mrepol742/master
Initial Commit
2 parents a23862e + 4fe601f commit ef66637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9465,7 +9465,7 @@ function testCommand(api, message, prefix, senderID, permission, regex) {
94659465
if (prefix == message) return checkCmdPermission(api, permission, senderID);
94669466
return false;
94679467
}
9468-
const regExp = new RegExp("(^" + prefix + "|^" + prefix + "s)");
9468+
const regExp = new RegExp("(^" + prefix + "$|^" + prefix + "\\s)");
94699469
if (regExp.test(message)) return checkCmdPermission(api, permission, senderID);
94709470
return false;
94719471
}

0 commit comments

Comments
 (0)