@mintlify/common 1.0.1041 → 1.0.1043

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/slugify.js CHANGED
@@ -3,7 +3,7 @@ import { getUnicodeId } from './mdx/lib/remark-utils.js';
3
3
  // decodes percent-encoded slugs and strips punctuation + emoji so the
4
4
  // resulting ID matches what the client renders in the DOM
5
5
  export const cleanHeadingId = (id) => {
6
- const decoded = decodeURIComponent(id);
6
+ const decoded = decodeURIComponent(id.replace(/%(?![0-9A-Fa-f]{2})/g, '%25'));
7
7
  return decoded
8
8
  .replace(/[?,;:!'"()[\]{}]/g, '')
9
9
  .replace(/\p{Emoji_Modifier}|\p{Emoji_Modifier_Base}|\p{Emoji_Presentation}|\p{Extended_Pictographic}|[\u200D\uFE0E\uFE0F]/gu, '');