Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix potential edge case in cordova.js detection (#284)
Because `indexOf` returns -1 in the case of no match, and a subtraction of string lengths can also potentially result in -1, we want to make sure the index is NOT -1 before we try to substring with it.
- Loading branch information