Skip to content

Commit

Permalink
Update pattern for new /v rules
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Sep 19, 2023
1 parent 6c86ea5 commit 9a95a3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renaming.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function promptForNewName(tagName, newName=tagName) {
return await new Prompt()
.setTitle(`Renaming #${tagName} (and any sub-tags)`)
.setContent("Enter new name (must be a valid Obsidian tag name):\n")
.setPattern("[^\u2000-\u206F\u2E00-\u2E7F'!\"#$%&()*+,.:;<=>?@^`{|}~\\[\\]\\\\\\s]+")
.setPattern("[^\u2000-\u206F\u2E00-\u2E7F'!\"#$%&\\(\\)*+,.:;<=>?@^`\\{\\|\\}~\\[\\]\\\\\\s]+")
.onInvalidEntry(t => new Notice(`"${t}" is not a valid Obsidian tag name`))
.setValue(newName)
.prompt()
Expand Down

0 comments on commit 9a95a3c

Please sign in to comment.