Use drop(n) instead of substring(n) on a String
Proprietarydrop(n) is the named form for skipping the first n characters and returns the empty string for over-long n instead of throwing.
org. openrewrite. kotlin. stdlib. UseStringDropForSubstring$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. stdlib. UseStringDropForSubstring$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.