Fix string split when last part is shorter than delimiter
Summary: The bug is when ignoreEmpty is true, we use the wrong token size, which will be 0 when last token is shorter than delimiter. Test Plan: 1. Add unit test 2. fbconfig -r folly && fbmake runtests Reviewed By: philipp@fb.com Subscribers: maxime, xiaol FB internal diff: D1415803
Showing
Please register or sign in to comment