Fix CMS support by including another regex. Also, change the method of getting the file name to test.
Why
The old regex supported CMS. The current tests fail in this case (i.e. both CMS input and output files are recognized as Polygon input files).
How Has This Been Tested?
Tested on local version of VNOJ, including previous tests and a Free Contest test data (in: CLIMBING/input.*, out: CLIMBING/output.*).
Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.
[x] I have explained the purpose of this PR.
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the README/documentation
[ ] Any dependent changes have been merged and published in downstream modules
[ ] Informed of breaking changes, testing and migrations (if applicable).
[ ] Attached screenshots (if applicable).
By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.
Description
Type of change: bug fix
What
Fix CMS support by including another regex. Also, change the method of getting the file name to test.
Why
The old regex supported CMS. The current tests fail in this case (i.e. both CMS input and output files are recognized as Polygon input files).
How Has This Been Tested?
Tested on local version of VNOJ, including previous tests and a Free Contest test data (in:
CLIMBING/input.*
, out:CLIMBING/output.*
).Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.By submitting this pull request, I confirm that my contribution is made under the terms of the AGPL-3.0 License.