Rename function

This commit is contained in:
Yarmo Mackenbach 2020-10-24 17:13:14 +02:00
parent 81edf64046
commit 0a00ab5060

View file

@ -16,7 +16,7 @@ limitations under the License.
const validUrl = require('valid-url')
const { serviceprovidersList, serviceproviders } = require('./serviceproviders')
const matchSp = (uri) => {
const matchServiceproviders = (uri) => {
let matches = [], sp
serviceprovidersList.forEach((spName, i) => {
@ -36,7 +36,7 @@ const verify = (uri, fingerprint, opts) => {
throw new Error('Not a valid URI')
}
const spMatches = matchSp(uri)
const spMatches = matchServiceproviders(uri)
if ('returnMatchesOnly' in opts && opts.returnMatchesOnly) {
return spMatches