aws / aws/aws-appsync-community
String.prototype.split() Incorrect With Trailing Separator
Open
- Dominant language
- HTML
- Stars
- 507
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
`'x/'.split('/')` returns the single-element array `['x']` but it should return the two-element array `['x', '']`.
Contributor guide
Research direction
Start by locating the String.prototype.split implementation and its existing tests in the AppSync runtime. Run the relevant split tests, reproduce the trailing-separator case, and confirm that the test suite covers the expected two-element result ['x', ''].
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100