-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit 020a374
Use lexicographic distance as last chance to spot the right library
Should solve most "overload" cases in Create.
Eg:
Library ZZ_Sensor contains ZZ_Sensor.h but the name in library.properties is "ZZ Unified Sensor"
A sketch includes ZZ_Sensor.h and the resolve function fails every test (since the library name is not contained in any variation of the "include" string), so it uses another clashing library randomly.
Lexicographic distance should help avoiding any library with "very different" name (unless explicitely requested, of course).1 parent 69b6665 commit 020a374
1 file changed
+27
-0
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 | + | ||
39 | 40 |
| |
40 | 41 |
| |
41 | 42 |
| |
| |||
211 | 212 |
| |
212 | 213 |
| |
213 | 214 |
| |
215 | + | ||
216 | + | ||
217 | + | ||
218 | + | ||
214 | 219 |
| |
215 | 220 |
| |
216 | 221 |
| |
| |||
252 | 257 |
| |
253 | 258 |
| |
254 | 259 |
| |
260 | + | ||
261 | + | ||
262 | + | ||
263 | + | ||
264 | + | ||
265 | + | ||
266 | + | ||
267 | + | ||
268 | + | ||
269 | + | ||
270 | + | ||
271 | + | ||
272 | + | ||
273 | + | ||
274 | + | ||
275 | + | ||
276 | + | ||
277 | + | ||
278 | + | ||
279 | + | ||
280 | + | ||
281 | + | ||
255 | 282 |
| |
256 | 283 |
| |
257 | 284 |
|
0 commit comments