yegor256 / cam

Classes and Metriсs (CaM): a dataset of Java classes from public open-source GitHub repositories
http://cam.yegor256.com
MIT License
25 stars 39 forks source link

Incorrect regex #395

Closed dzhovi closed 7 hours ago

dzhovi commented 1 week ago

During discovering project scripts, i noticed that this part is likely to be incorrect. What we want is to exclude files that end with index, matrix or skeleton. But regex excludes files that end with a character that appears in previously mentioned strings instead. For example, it excludes filenames like wwwi.xml, because it ends with i, which appears in index. Or yyyx.xml, because it ends with the same character matrix ends. I believe it is not the expected behavior.

I'll open PR in advance with the corrected regex, which will exclude files that end with index, matrix or skeleton. names.

dzhovi commented 1 week ago

@yegor256 what do you think?

dzhovi commented 7 hours ago

pr has merged, closing issue