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

string.sub broken for j=0 or j<i #40

Open
fcr-- opened this issue May 17, 2017 · 1 comment
Open

string.sub broken for j=0 or j<i #40

fcr-- opened this issue May 17, 2017 · 1 comment

Comments

@fcr--
Copy link
Contributor

fcr-- commented May 17, 2017

string.sub('abcde', 4, 1) should be an empty string, not 'bc'.
string.sub('abcde', 3, 0) should be an empty string, not 'cde'.

fcr-- added a commit to fcr--/moonshine that referenced this issue May 17, 2017
@bmcbarron
Copy link

This appears to be fixed on master, although moonshine.js and moonshine.min.js were not rebuilt in that CL. PR #46 includes a rebuild that incorporates those fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants