UNPKG

@sphereon/ssi-sdk-ext.kms-azure-rest-client

Version:

Sphereon SSI-SDK plugin for Azure KeyVault Key Management System.

24 lines (23 loc) 610 B
export function isCodeInRange(codeRange, code) { if (codeRange === '0') { return true } if (codeRange == code.toString()) { return true } else { const codeString = code.toString() if (codeString.length != codeRange.length) { return false } for (let i = 0; i < codeString.length; i++) { if (codeRange.charAt(i) != 'X' && codeRange.charAt(i) != codeString.charAt(i)) { return false } } return true } } export function canConsumeForm(contentTypes) { return contentTypes.indexOf('multipart/form-data') !== -1 } //# sourceMappingURL=util.js.map