Add files via upload

This commit is contained in:
Maboroshy 2017-10-08 01:20:12 +04:00 committed by GitHub
parent f67d1f4c24
commit 13c753eccf
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ Script {
*/
function noteTaggingHook(note, action, tagName, newTagName) {
var noteText = note.noteText;
var tagRegExp = RegExp("\\B%1($|\\s|\\b)".arg(escapeRegExp(tagMarker + tagName).replace(/ /g, "_")));
var tagRegExp = RegExp("\\B%1(?=($|\\s|\\b))".arg(escapeRegExp(tagMarker + tagName).replace(/ /g, "_")));
switch (action) {
// adds the tag "tagName" to the note