loco-rs / loco

🚂 🦀 The one-person framework for Rust for side-projects and startups
https://loco.rs
Apache License 2.0
5.45k stars 235 forks source link

fix: model conflict false positive #957

Closed ABruel closed 1 week ago

ABruel commented 2 weeks ago

Fixes #956

kaplanelad commented 2 weeks ago

@ABruel Why did you add m????????_??????? Can we check the specific name instead of using regex?

ABruel commented 2 weeks ago

@ABruel Why did you add m????????_??????? Can we check the specific name instead of using regex?

The ? mean any character. I don't know if this system supports regex and not just glob.

Technically it is possible to check for an exact match since the migrator uses the entire file name, but I assumed there was a reason for the glob exclusion that was already there.