Skip to content

Commit 4f8f6dc

Browse files
refactor: add missing exports (#63)
1 parent 2466173 commit 4f8f6dc

16 files changed

+32
-39
lines changed

src/__tests__/builder.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { buildRegExp } from '../builders';
1+
import { buildRegExp } from '..';
22

33
test('`regexBuilder` flags', () => {
44
expect(buildRegExp('a').flags).toBe('');

src/__tests__/example-email.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
oneOrMore,
99
repeat,
1010
startOfString,
11-
} from '../index';
11+
} from '..';
1212

1313
test('example: email validation', () => {
1414
const usernameChars = charClass(charRange('a', 'z'), digit, anyOf('._%+-'));

src/__tests__/example-hashtags.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { buildRegExp } from '../builders';
2-
import { capture, oneOrMore, word } from '../index';
1+
import { buildRegExp, capture, oneOrMore, word } from '..';
32

43
test('example: extracting hashtags', () => {
54
const regex = buildRegExp(

src/__tests__/example-hex-color.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
optional,
99
repeat,
1010
startOfString,
11-
} from '../index';
11+
} from '..';
1212

1313
test('example: hex color validation', () => {
1414
const hexDigit = charClass(digit, charRange('a', 'f'));

src/__tests__/example-ipv4.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,4 @@
1-
import {
2-
buildRegExp,
3-
charRange,
4-
choiceOf,
5-
digit,
6-
endOfString,
7-
repeat,
8-
startOfString,
9-
} from '../index';
1+
import { buildRegExp, charRange, choiceOf, digit, endOfString, repeat, startOfString } from '..';
102

113
test('example: IPv4 address validator', () => {
124
const octet = choiceOf(

src/__tests__/example-js-number.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
optional,
99
startOfString,
1010
zeroOrMore,
11-
} from '../index';
11+
} from '..';
1212

1313
test('example: validate JavaScript number', () => {
1414
const sign = anyOf('+-');

src/__tests__/example-regexp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { buildRegExp, choiceOf, endOfString, repeat, startOfString } from '../index';
1+
import { buildRegExp, choiceOf, endOfString, repeat, startOfString } from '..';
22

33
test('example: mixing with RegExp literals (IPv4 address validator)', () => {
44
const octet = choiceOf(

src/__tests__/example-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
optional,
1111
startOfString,
1212
zeroOrMore,
13-
} from '../index';
13+
} from '..';
1414

1515
// Modified from: https://stackoverflow.com/a/2015516
1616
test('example: simple url validation', () => {

src/constructs/__tests__/anchors.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { endOfString, startOfString } from '../anchors';
2-
import { oneOrMore } from '../quantifiers';
1+
import { endOfString, oneOrMore, startOfString } from '../..';
32

43
test('`startOfString` basic cases', () => {
54
expect(startOfString).toEqualRegex(/^/);

src/constructs/__tests__/capture.test.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { capture } from '../capture';
2-
import { oneOrMore } from '../quantifiers';
1+
import { capture, oneOrMore } from '../..';
32

43
test('`capture` base cases', () => {
54
expect(capture('a')).toEqualRegex(/(a)/);

0 commit comments

Comments
 (0)