Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jdneo merged 2 commits intomasterfromcs/statusbar
Mar 13, 2019
Merged

Conversation

jdneo
Copy link
Member

Resolve#112

@jdneojdneo added this to the0.13.0 milestoneMar 12, 2019
private tryParseUserName(output: string): string {
const lines: string[] = output.trim().split(/\r?\n/);
if (lines.length === 3) {
const reg: RegExp = /^\s*.{1}\s*(.+)\s*https:\/\/leetcode/;
Copy link
Contributor

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.?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Updated

Copy link
Contributor

@VigilansVigilans left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM. I neglected thetrim() in last review.

@jdneojdneo merged commitbe4f2d5 intomasterMar 13, 2019
@jdneojdneo deleted the cs/statusbar branchMarch 13, 2019 07:35
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@VigilansVigilansVigilans approved these changes

@poppinlppoppinlpAwaiting requested review from poppinlp

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
0.13.0
Development

Successfully merging this pull request may close these issues.

2 participants
@jdneo@Vigilans

[8]ページ先頭

©2009-2025 Movatter.jp