summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-12-22 01:47:51 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-12-22 01:47:51 +0000
commit002187d8b618e01a1427dca7d1f120449dcb560f (patch)
tree3ae8753f8be3dab814685a1231b7c10b7cfdcdec /lib
parentc465537881d0e4b1e352f24ffb560240eef4b9da (diff)
downloadredmine-002187d8b618e01a1427dca7d1f120449dcb560f.tar.gz
redmine-002187d8b618e01a1427dca7d1f120449dcb560f.zip
Merge r22546 from trunk to 5.1-stable (#39884).
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22547 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/wiki_formatting/textile/redcloth3.rb2
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 e319d90db..b716a0b00 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