Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'?' option does not work for IP pattern. #16

Open
bhs324 opened this issue Nov 26, 2020 · 0 comments
Open

'?' option does not work for IP pattern. #16

bhs324 opened this issue Nov 26, 2020 · 0 comments

Comments

@bhs324
Copy link

bhs324 commented Nov 26, 2020

When I run the following test

	const inputProcessor = createInputProcessor('00?0?.00?0?.00?0?.00?0?');
	const inputValues = ['127.0.0.1'];
	const outputResults = enterValuesOneAtTime(inputValues, inputProcessor);

	expect(outputResults).toEqual([
		{
			text: '127.0.0.1',
			complete: false
		}
	]);

It fails with the following result:

    - Expected
    + Received

      Array [
        Object {
    -     "complete": false,
    -     "text": "127.0.0.1",
    +     "complete": false,
    +     "text": "127.001",
        },
      ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant