Skip to content
This repository was archived by the owner on Jan 19, 2026. It is now read-only.
This repository was archived by the owner on Jan 19, 2026. It is now read-only.

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

Description

@bhs324

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",
        },
      ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions