Skip to content

Conversation

@bogovicj
Copy link
Collaborator

@bogovicj bogovicj commented Jul 23, 2025

  • strings that start with a number are now supported
  • strings that start end a number are now supported
  • strings containing numbers that are constant now matched as numbers
  • add a test

The provided test shows what I'd expect the behavior of the matcher to be, and this differs from the current behavior, especially for strings that start or end with a numerical pattern.

In particular, I have these expectations

Strings Pattern
[ "0_s", "1_s"] {0}_s
[ "0_s", "1_t"] {0}.*
[ "0_s0", "1_s0"] {0}_s{1}
[ "t0_s0", "t1_s0"] t{0}_s{1}

I marked some methods @Deprecated, these are no longer used and could be deleted (but that would break API).

bogovicj added 2 commits July 23, 2025 17:08
* strings that start with a number are now supported
* strings that start end a number are now supported
* strings containing numbers that are constant now matched as numbers
* add a test
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 this pull request may close these issues.

1 participant