mirror of https://github.com/Nofated095/Q2TG.git
Fix: regex for hug
This commit is contained in:
parent
20853552a5
commit
c532bee8ea
|
@ -23,7 +23,7 @@ type ActionSubjectQq = {
|
||||||
|
|
||||||
type ActionSubject = ActionSubjectTg | ActionSubjectQq;
|
type ActionSubject = ActionSubjectTg | ActionSubjectQq;
|
||||||
|
|
||||||
const COMMAND_REGEX = /^\/([\u4e00-\u9fa5][\u4e00-\u9fa5\w]*)|\$(\w[\u4e00-\u9fa5\w]*)/; // /抱 /$rua
|
const COMMAND_REGEX = /^\/([^\w\s$]\S*)|\$(\w\S*)/; // /抱 /$rua
|
||||||
|
|
||||||
export default class {
|
export default class {
|
||||||
private readonly log: Logger;
|
private readonly log: Logger;
|
||||||
|
|
Loading…
Reference in New Issue