axe-sarif-converter
Version:
Convert axe-core accessibility scan results to the SARIF format
14 lines (13 loc) • 421 B
JavaScript
;
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNotEmpty = isNotEmpty;
exports.escapeForMarkdown = escapeForMarkdown;
function isNotEmpty(str) {
str = str ? str.trim() : '';
return str.length > 0;
}
function escapeForMarkdown(s) {
return s ? s.replace(/</g, '<') : '';
}