mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Rename function
This commit is contained in:
parent
81edf64046
commit
0a00ab5060
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue