Skip to content

Commit

Permalink
Add withFormat to Text
Browse files Browse the repository at this point in the history
  • Loading branch information
tobeno committed Jul 16, 2023
1 parent a7c0fe1 commit 34b81b1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/wrappers/text.wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,13 @@ export class Text extends Wrapper<string> {
return this;
}

/**
* Returns a new Text with the format set.
*/
withFormat(format: string | null): Text {
return Text.create(this, format);
}

/**
* Returns the number of matches of the given (RegExp) pattern.
*/
Expand Down

0 comments on commit 34b81b1

Please sign in to comment.