diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-22 01:48:13 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2023-12-22 01:48:13 +0000 |
commit | d05d732080fac8599cdbb182009c78e60ba3518e (patch) | |
tree | 4ff5d0712c1af36bd1697eb39fa779d0b71cb17a /lib | |
parent | d18f4d4b92ee3c41d5fd0886bfe8483427ce5143 (diff) | |
download | redmine-d05d732080fac8599cdbb182009c78e60ba3518e.tar.gz redmine-d05d732080fac8599cdbb182009c78e60ba3518e.zip |
Merge r22546 from trunk to 5.0-stable (#39884).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@22548 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/wiki_formatting/textile/redcloth3.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb index 9062fca0d..04ac3ba56 100644 --- a/lib/redmine/wiki_formatting/textile/redcloth3.rb +++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb @@ -1042,7 +1042,7 @@ class RedCloth3 < String end def footnote_ref( text ) - text.gsub!(/\b\[([0-9]+?)\](\s)?/, + text.gsub!(/(?<=[\p{Word}\]])\[([0-9]+?)\](\s)?/, '<sup><a href="#fn\1">\1</a></sup>\2') end |