We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
file path: src/utils/index
src/utils/index
const regex = new RegExp(`^${mentionChar}|\\s${mentionChar}`, "g"); const lastMatch = (text.match(regex) || []).pop();
If I set mentionChar to "this."
mention: { mentionDenotationChars: ["this."] }
expect:
actual:
Execution result: When I type "this" and anything, it matches "this.".
I solved this problem with the following changes:
const regex = new RegExp(`^${mentionChar}|\\s${mentionChar}`, "g");
Be modified into
const new_mentionChar = mentionChar.replace(/[^a-zA-Z0-9\u4e00-\u9fa5\s]/g,"\\$&"); const regex = new RegExp( `^${new_mentionChar}|\\s${new_mentionChar}`, "g");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
file path:
src/utils/index
If I set mentionChar to "this."
expect:
actual:
Execution result:
When I type "this" and anything, it matches "this.".
I solved this problem with the following changes:
Be modified into
The text was updated successfully, but these errors were encountered: