-
Notifications
You must be signed in to change notification settings - Fork 677
[bugfix] Correct the content shown in status-bar #202
New issue
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
Conversation
src/leetCodeManager.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The regex executing on
' ×ばつ vigilans https://leetcode-cn.com'
will return
'vigilans '
Append ?
to .+
to prevent greedy match could solve the problem.
Besides, is there any difference between .{1}
and .
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I neglected the trim()
in last review.
Resolve #112