Skip to content

PatternGenerator fails specific case

Header

Project Reproducibility
CommonData Always

Description

Regex simplification generates invalid results which match more cases than there are in the dataset.

STR

  1. Execute FindPattern on the dateset which you can find in AI.
  2. Observe the generated regex string
  • As you can see it will match cases which are not from the dataset

Additional information

DataSet

"CommonData",
"CommonMath",
"CommonLinq",
"Controls"

Expected output

"Co((mmon(Data|Math|Linq)|ntrols)"

Generated output

"Co(|mmo)n(Data|Math|Linq|trols)"

Matches ConData, ConMath, ConLinq and Commontrols which are not from the dataset

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information