Skip to content
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

[修正済確認待]split/replace でマッチしないパターンを渡すと空文字が返ってくる #14

Closed
jin1016 opened this issue Nov 11, 2013 · 0 comments
Assignees

Comments

@jin1016
Copy link
Member

jin1016 commented Nov 11, 2013

[不具合]
TJSで、文字列への split()/replace() が、「存在しないパターン」を
与えられたときに正常に動作しない

[テストスクリプト]
dm("abcdefg".split(/z/)[0]);
dm("abcdefg".replace(/z/, "abc"));

[望まれる出力(=吉里吉里2の結果)]
abcdefg
abcdefg

現在の吉里吉里Zでの出力
(改行のみ)

@ghost ghost assigned jin1016 Nov 11, 2013
@jin1016 jin1016 closed this as completed Nov 21, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant