@ptolemy2002/rgx 13.2.1 → 13.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants.d.ts +5 -0
- package/dist/constants.js +8 -0
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
|
@@ -140,6 +140,11 @@ export declare const RGX_PREDEFINED_CONSTANTS: {
|
|
|
140
140
|
readonly rgxIsRepeatable: false;
|
|
141
141
|
readonly toRgx: () => RegExp;
|
|
142
142
|
};
|
|
143
|
+
readonly never: {
|
|
144
|
+
readonly rgxGroupWrap: false;
|
|
145
|
+
readonly rgxIsRepeatable: false;
|
|
146
|
+
readonly toRgx: () => RegExp;
|
|
147
|
+
};
|
|
143
148
|
};
|
|
144
149
|
export type RGXPredefinedConstant = keyof typeof RGX_PREDEFINED_CONSTANTS;
|
|
145
150
|
export type RGXConstantName = RGXPredefinedConstant | (string & {});
|
package/dist/constants.js
CHANGED
|
@@ -169,6 +169,14 @@ exports.RGX_PREDEFINED_CONSTANTS = {
|
|
|
169
169
|
return /(?<=(?<!\\)(?:\\\\)*)/;
|
|
170
170
|
}
|
|
171
171
|
},
|
|
172
|
+
"never": {
|
|
173
|
+
rgxGroupWrap: false,
|
|
174
|
+
rgxIsRepeatable: false,
|
|
175
|
+
toRgx() {
|
|
176
|
+
// Never succeed
|
|
177
|
+
return /(?!)/;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
172
180
|
};
|
|
173
181
|
function listRGXConstants() {
|
|
174
182
|
return Object.keys(rgxConstants);
|