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

Issue#4#9

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

Open
legokichi wants to merge3 commits intouupaa:master
base:master
Choose a base branch
Loading
fromlegokichi:issue#4
Open

Issue#4#9

legokichi wants to merge3 commits intouupaa:masterfromlegokichi:issue#4

Conversation

legokichi
Copy link

#4

この問題に関する提案です。

現行の方式では/github.com(.)uupaa/uupaaを置換していました。
しかしこの方法では、先のissue#4に挙げたような問題が発生していました。

text=text.replace(/github.com(.)uupaa/g,function(_,sep){return"github.com"+sep+githubUserName;});

そこで、置換対象を__GITHUB_USER_NAME__というマクロ変数を利用して問題の解決を試みます。

text=text.replace(/github.com(.)uupaa/g,function(_,sep){return"github.com"+sep+githubUserName;});

この方式も「マクロ変数名を__HOGE__という安易な形にして良いのか」等、問題があります。

ひとつの提案としてご査収ください。

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@legokichi

[8]ページ先頭

©2009-2025 Movatter.jp