mirror of
https://github.com/marty-oehme/scripts.git
synced 2024-12-22 07:58:08 +00:00
Merge pull request #13 from qownnotes/Maboroshy-patch-2
Add files via upload
This commit is contained in:
commit
cd3c264522
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ Script {
|
||||||
*/
|
*/
|
||||||
function noteTaggingHook(note, action, tagName, newTagName) {
|
function noteTaggingHook(note, action, tagName, newTagName) {
|
||||||
var noteText = note.noteText;
|
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) {
|
switch (action) {
|
||||||
// adds the tag "tagName" to the note
|
// adds the tag "tagName" to the note
|
||||||
|
|
Loading…
Reference in a new issue