@karinjs/adapter-qqbot 3.3.1 → 3.4.0

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.
@@ -7,6 +7,8 @@ import "@karinjs/geturls";
7
7
  //#region src/core/constants/regex.ts
8
8
  /** HTTP(S) 资源已经是可直接传给 QQ 平台的公网地址。 */
9
9
  const HTTP_URL_RE = /^https?:\/\//i;
10
+ /** QQ 素材管理返回的 Markdown 图片引用。 */
11
+ const QQBOT_MEDIA_RE = /^qqbot-media:\/\//i;
10
12
  /** Karin 常见 base64 图片/媒体前缀。 */
11
13
  const BASE64_PREFIX_RE = /^base64:\/\//i;
12
14
  /** 标准 data URL 的 base64 前缀。 */
@@ -44,4 +46,4 @@ const getImageSize = async (source) => {
44
46
  };
45
47
 
46
48
  //#endregion
47
- export { DATA_URL_BASE64_RE as a, BASE64_PREFIX_RE as i, getImageSize as n, HTTP_URL_RE as o, random as r, QQ_NUMBER_RE as s, fakeEvent as t };
49
+ export { DATA_URL_BASE64_RE as a, QQ_NUMBER_RE as c, BASE64_PREFIX_RE as i, getImageSize as n, HTTP_URL_RE as o, random as r, QQBOT_MEDIA_RE as s, fakeEvent as t };