# \[SOLVED\] Strange things about issue referencing

**URL:** <https://forum.gitea.com/t/solved-strange-things-about-issue-referencing/1426>\
**Category:** Install/Maintain/Configure\
**Created:** [August 29, 2019, 9:59am UTC](https://forum.gitea.com/t/solved-strange-things-about-issue-referencing/1426 "2019-08-29T09:59:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![elfuego](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/elfuego/32/4746_2.png) [@elfuego](https://forum.gitea.com/u/elfuego)\
**Post date:** [August 29, 2019, 9:59am UTC](https://forum.gitea.com/t/solved-strange-things-about-issue-referencing/1426/1 "2019-08-29T09:59:07Z")

</div>

I’d just moved to version 1.9.2 (from 1.9.0) and I have noticed a strange thing about issue referencing.

I have an issue #1 in a project, and I made a commit with message like ‘#1: - some message’ and the commit didn’t get linked to the issue, i.e. there’s no message `someone referenced this issue from a commit…’, while the commit is visible in the commit list.

The other thing is all previous commits are still referencing the issue, but hovering mouse cursor over the ‘#1’ in the message previously pointed to the issue, but now the whole message points to the commit itself (the code diff).

Did reference rules change somehow or am I doing something wrong?

---

<div class="post-metadata">

**Author:** ![elfuego](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/elfuego/32/4746_2.png) [@elfuego](https://forum.gitea.com/u/elfuego)\
**Post date:** [August 29, 2019, 12:51pm UTC](https://forum.gitea.com/t/solved-strange-things-about-issue-referencing/1426/2 "2019-08-29T12:51:52Z")

</div>

Ok, I looked at the source code and saw it was really changed.

---

<div class="post-metadata">

**Author:** ![elfuego](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/elfuego/32/4746_2.png) [@elfuego](https://forum.gitea.com/u/elfuego)\
**Post date:** [August 29, 2019, 2:52pm UTC](https://forum.gitea.com/t/solved-strange-things-about-issue-referencing/1426/3 "2019-08-29T14:52:37Z")

</div>

Just in case, here’s the regex which is used:  
`(?:\s|^|\(|\[)(?:([0-9a-zA-Z-_\.]+)/([0-9a-zA-Z-_\.]+))?(#[0-9]+)(?:\s|$|\)|\]|\.(\s|$))`.

---

<div class="post-metadata">

**Author:** ![techknowlogick](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.gitea.com/techknowlogick/32/4706_2.png) [@techknowlogick](https://forum.gitea.com/u/techknowlogick)\
**Post date:** [September 1, 2019, 9:02pm UTC](https://forum.gitea.com/t/solved-strange-things-about-issue-referencing/1426/4 "2019-09-01T21:02:47Z")

</div>


