Could the text transformation feature be used to auto-capitalize the first word in a sentence? #3144
Labels
package:typing
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
type:question
This issue asks a question (how to...).
Milestone
I think not, because it does not accept callbacks yet. But if it would, I think we could use it like this.
Regarding the callback – I see it either like this:
So the
transform()
function could only affect the matches object. This reduces its scope and perhaps might make it easier to implement.But ideally, you should be able to pass a function as
to
:But I wonder if this doesn't create some weird cases that we'd need to handle. Although, I can't think of any at the moment, so perhaps this is the best option.
The text was updated successfully, but these errors were encountered: