Skip to content

Commit 75f3f08

Browse files
authored
Merge pull request #115 from mysilio-co/staging-bugfix-032822
allow - in tags
2 parents edfb006 + 4734e06 commit 75f3f08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/Plate/plugins/tag.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { createPluginFactory } from "@udecode/plate";
44
import { ELEMENT_TAG } from "../../../utils/slate";
55

66
// inspired by https://stackoverflow.com/a/60972027
7-
const tagRegex = /#(\w{1,100})(.*)/
7+
const tagRegex = /#([\w\-]{1,100})(.*)/
88

99
function hasTagParent(editor, path) {
1010
const parent = Node.get(editor, path.slice(0, -1))

0 commit comments

Comments
 (0)