File tree Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Expand file tree Collapse file tree 1 file changed +23
-3
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,13 @@ rewrite="String.slice(~start=:[from], ~end=:[to])"
69
69
match =" Js.String2.sliceToEnd(~from=:[from])"
70
70
rewrite =" String.sliceToEnd(~start=:[from])"
71
71
72
- [string-a-replace ]
72
+ [string-a-replace-a ]
73
+ match =" Js.String2.replaceByRe"
74
+ rewrite =" String.replaceRegExp"
75
+
76
+ [string-a-replace-b ]
73
77
match =" Js.String2.replace"
74
- rewrite =" String.replaceString "
78
+ rewrite =" String.replace "
75
79
76
80
[string-a-substring ]
77
81
match =" Js.String2.substring(~from=:[from], ~to_=:[to])"
@@ -297,10 +301,26 @@ rewrite="Math.max"
297
301
match =" Math.min_float"
298
302
rewrite =" Math.min"
299
303
304
+ [math-a-g ]
305
+ match =" Math.abs_int"
306
+ rewrite =" Math.Int.abs"
307
+
308
+ [math-a-h ]
309
+ match =" Math.abs_float"
310
+ rewrite =" Math.abs"
311
+
300
312
# # BELT
301
313
# # Below are migrations that cover moving from Belt to equivalents
302
314
# # available in the new stdlib.
303
- [belt-option ]
315
+ [belt-option-a-getWithDefault ]
316
+ match =" Belt.Option.getWithDefault"
317
+ rewrite =" Option.getOr"
318
+
319
+ [belt-option-a-mapWithDefault ]
320
+ match =" Belt.Option.mapWithDefault"
321
+ rewrite =" Option.mapOr"
322
+
323
+ [belt-option-z ]
304
324
match =" Belt.Option"
305
325
rewrite =" Option"
306
326
You can’t perform that action at this time.
0 commit comments