Skip to content

Commit debc8fd

Browse files
committed
chore: review
1 parent eec72f0 commit debc8fd

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/constructs/character-class.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,11 @@ export function negated(element: CharacterClass): CharacterClass {
152152
};
153153
}
154154

155+
/**
156+
* @deprecated Renamed to `negated`.
157+
*/
158+
export const inverted = negated;
159+
155160
function encodeCharacterClass(this: CharacterClass): EncodeResult {
156161
if (this.chars.length === 0 && this.ranges.length === 0) {
157162
throw new Error('Character class should contain at least one character or character range');

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export {
1717
charRange,
1818
digit,
1919
negated,
20+
inverted,
2021
nonDigit,
2122
nonWhitespace,
2223
nonWord,

0 commit comments

Comments
 (0)