flink-sql-language-server
Version:
A LSP-based language server for Apache Flink SQL
18 lines (17 loc) • 451 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeElement = removeElement;
exports.unique = unique;
exports.sanitizeText = sanitizeText;
function removeElement(element, array) {
const index = array.indexOf(element);
if (index !== -1) {
array.splice(index, 1);
}
}
function unique(arr) {
return [...new Set(arr)];
}
function sanitizeText(text) {
return text.replace(/['"`]/g, '');
}