Commit 00e6756
[bugfix] Require ! flag for empty-matching regex in XQ4 fn:replace and fn:tokenize
Without the ! flag, empty-matching patterns raise FORX0003 in both XQ 3.1
and XQ 4.0 mode. With the ! flag in XQ 4.0, fn:replace uses the Java regex
fallback and fn:tokenize tokenizes between each character.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f4faa9f commit 00e6756
2 files changed
Lines changed: 10 additions & 9 deletions
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | | - | |
157 | | - | |
| 157 | + | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
164 | | - | |
165 | | - | |
| 165 | + | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
134 | 136 | | |
135 | 137 | | |
136 | | - | |
137 | | - | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments