"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const hexadecimalRegex = /[\dA-Fa-f]/;
function toHexadecimal(code, next, omit) {
  const value = "&#x" + code.toString(16).toUpperCase();
  return omit && next && !hexadecimalRegex.test(String.fromCharCode(next)) ? value : value + ";";
}
exports.toHexadecimal = toHexadecimal;
//# sourceMappingURL=lib-util-to-hexadecimal.cjs.map
