convert
Learn how to change the case of a match.
func convert(match string) stringconvert suggests the matched text in another case. Its one parameter names the target:
Name
Result
simple
Lower case, with the words separated by single spaces.
extends: existence
message: "'%s' should be '%s'."
action:
name: convert
params:
- simple
tokens:
- '[A-Z]{2,}(?: [A-Z]{2,})+'The same conversion is available as the simple step of edit, beside the other cases, which is where a fix that needs more than one step belongs.
Last updated