We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec72f0 commit debc8fdCopy full SHA for debc8fd
src/constructs/character-class.ts
@@ -152,6 +152,11 @@ export function negated(element: CharacterClass): CharacterClass {
152
};
153
}
154
155
+/**
156
+ * @deprecated Renamed to `negated`.
157
+ */
158
+export const inverted = negated;
159
+
160
function encodeCharacterClass(this: CharacterClass): EncodeResult {
161
if (this.chars.length === 0 && this.ranges.length === 0) {
162
throw new Error('Character class should contain at least one character or character range');
src/index.ts
@@ -17,6 +17,7 @@ export {
17
charRange,
18
digit,
19
negated,
20
+ inverted,
21
nonDigit,
22
nonWhitespace,
23
nonWord,
0 commit comments