@autumnsgrove/groveengine 0.4.6 → 0.4.7

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.
@@ -42,7 +42,7 @@ export function sanitizeHTML(html) {
42
42
  "onmouseleave",
43
43
  "style",
44
44
  ],
45
- ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto|tel):)/i,
45
+ ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto|tel):|\/|#)/i,
46
46
  ALLOW_DATA_ATTR: false,
47
47
  KEEP_CONTENT: true,
48
48
  SAFE_FOR_TEMPLATES: true,
@@ -245,7 +245,7 @@ export function sanitizeMarkdown(markdownHTML) {
245
245
  "onsubmit",
246
246
  "style",
247
247
  ],
248
- ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto|tel):)/i,
248
+ ALLOWED_URI_REGEXP: /^(?:(?:https?|mailto|tel):|\/|#)/i,
249
249
  ALLOW_DATA_ATTR: false,
250
250
  KEEP_CONTENT: true,
251
251
  SAFE_FOR_TEMPLATES: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autumnsgrove/groveengine",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "description": "Multi-tenant blog engine for Grove Platform. Features gutter annotations, markdown editing, magic code auth, and Cloudflare Workers deployment.",
5
5
  "author": "AutumnsGrove",
6
6
  "license": "MIT",