Commit 0ae1f60
committed
Fix Js.String.match_ return type
Javscript String.prototype.match function can
return undefined values for optional capture groups
that are not found, which breaks the type annotations
since this is not added as a Js.nullable or an option,
it's not possible to deal with those.
Added an option type for array values.1 parent d5d46b3 commit 0ae1f60
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
274 | 274 | | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
| 276 | + | |
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
| |||
0 commit comments