Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Discovery middleware shouldn't fail when lib names overlap (#362)
When a library's name is a prefix of another library's name (like with sap.m and sap.me), the discovery service mistakenly assigned test pages to both libraries. By including the slash in the prefix check, only full segment matches will be taken into account. By checking the prefixes from longest to shortest and by aborting after the first match, non-prefix-free lib names can be handled properly. The longest matching prefix will win and there won't be double assignments.
- Loading branch information