Commit 78d2409
authored
Merge pull request #60 from rayokota/fix-regexp
Fix regexp which ends in /i or /m
the code is:
while (currentChar == 'i')
position++
path.charAt(position)
when the regex ends with /i, position points "beyond" the string
in JS, we chatAt simply returns ""
in Java, we get an index out of bounds2 files changed
Lines changed: 12 additions & 1 deletion
File tree
- src
- main/java/com/dashjoin/jsonata
- test/java/com/dashjoin/jsonata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
148 | 152 | | |
149 | 153 | | |
150 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
130 | 137 | | |
131 | 138 | | |
132 | 139 | | |
| |||
0 commit comments