Commit b780a89
committed
Fix split() for strings ending with the split
Allow `split()` (and non-regex `reg_split()`) to match the split on the last possible part of the string as well.
Fixes `split('b', 'ab')` resulting in `{'ab'}`, rather than `{'a', ''}`.1 parent cdc6c62 commit b780a89
File tree
1 file changed
+1
-1
lines changed- src/main/java/com/laytonsmith/core/functions
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1328 | 1328 | | |
1329 | 1329 | | |
1330 | 1330 | | |
1331 | | - | |
| 1331 | + | |
1332 | 1332 | | |
1333 | 1333 | | |
1334 | 1334 | | |
| |||
0 commit comments