# Create a tag with a period

**URL:** <https://meta.discourse.org/t/create-a-tag-with-a-period/112503>\
**Category:** Support\
**Tags:** tags\
**Created:** [2019年三月25日 14:07 UTC](https://meta.discourse.org/t/create-a-tag-with-a-period/112503 "2019-03-25T14:07:38Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![drazisil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drazisil/32/121674_2.png) [@drazisil](https://meta.discourse.org/u/drazisil)\
**Post date:** [2019年三月25日 14:07 UTC](https://meta.discourse.org/t/create-a-tag-with-a-period/112503/1 "2019-03-25T14:07:38Z")

</div>

Hello,

I’m trying to create a tag that has a period in it (such as `1.0`), but no matter what I try it ends up as `10`. Any advice on what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2019年三月25日 16:05 UTC](https://meta.discourse.org/t/create-a-tag-with-a-period/112503/2 "2019-03-25T16:05:08Z")

</div>

Tags generally only support underscores and hyphens — most other punctuation will be stripped out.

---

<div class="post-metadata">

**Author:** ![drazisil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/drazisil/32/121674_2.png) [@drazisil](https://meta.discourse.org/u/drazisil)\
**Post date:** [2019年三月25日 16:08 UTC](https://meta.discourse.org/t/create-a-tag-with-a-period/112503/3 "2019-03-25T16:08:49Z")

</div>

We have a couple already with a period [CircleCI Discuss](https://discuss.circleci.com/tags) (such as `2.0` and `circle.yml`) I’m stumped as to how they came to be. Both are at least 1 year old, any chance this behavior changed?

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2019年三月25日 16:26 UTC](https://meta.discourse.org/t/create-a-tag-with-a-period/112503/4 "2019-03-25T16:26:59Z")

</div>

Good question… we’ve been stripping punctuation from tags for over a year, so I’m not sure how those would have been created. Maybe @neil has an idea?

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [2019年三月25日 19:56 UTC](https://meta.discourse.org/t/create-a-tag-with-a-period/112503/5 "2019-03-25T19:56:44Z")

</div>

It’s been removing periods since 14 Oct 2016, and probably before that because the commit where it was last touched is called “loosen restrictions on chars in tags”. Maybe the tags were loaded from a script into the db or some other way outside of the UI. Interesting that it seems to be working… 🤔

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2019年四月24日 19:56 UTC](https://meta.discourse.org/t/create-a-tag-with-a-period/112503/6 "2019-04-24T19:56:44Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
