mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2025-01-10 06:39:27 -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 validUrl = require('valid-url')
|
||||||
const { serviceprovidersList, serviceproviders } = require('./serviceproviders')
|
const { serviceprovidersList, serviceproviders } = require('./serviceproviders')
|
||||||
|
|
||||||
const matchSp = (uri) => {
|
const matchServiceproviders = (uri) => {
|
||||||
let matches = [], sp
|
let matches = [], sp
|
||||||
|
|
||||||
serviceprovidersList.forEach((spName, i) => {
|
serviceprovidersList.forEach((spName, i) => {
|
||||||
|
@ -36,7 +36,7 @@ const verify = (uri, fingerprint, opts) => {
|
||||||
throw new Error('Not a valid URI')
|
throw new Error('Not a valid URI')
|
||||||
}
|
}
|
||||||
|
|
||||||
const spMatches = matchSp(uri)
|
const spMatches = matchServiceproviders(uri)
|
||||||
|
|
||||||
if ('returnMatchesOnly' in opts && opts.returnMatchesOnly) {
|
if ('returnMatchesOnly' in opts && opts.returnMatchesOnly) {
|
||||||
return spMatches
|
return spMatches
|
||||||
|
|
Loading…
Reference in a new issue