The titles of notes can contain characters that have a special meaning
in regular expressions. Therefore those characters have to be escaped
before the title is used in a regular expression. Failure to do so in
the code that replaces wikilinks in notes, can otherwise result in
broken links.
In case you were exerting a coding style opinion, feel free to ignore this pull request.
The following are equivalent, as far as I understand, so some chars can be deleted 🙂:
`current_note.content = current_note.content.gsub()` == `current_note.content.gsub!()`
One of the breaking errors that I fixed in my install of this great repo was that all links generated by the ruby script didn't take into account the baseurl specified in the config file.
This ruby file corrects the error, although in the paths it might add one '/' too many. This hasn't caused me any issues, but should be considered.