# Generated code invalid for a repo with a dot in its name

**URL:** <https://discourse.elm-lang.org/t/generated-code-invalid-for-a-repo-with-a-dot-in-its-name/1007>\
**Category:** Learn\
**Created:** [March 25, 2018, 12:36pm UTC](https://discourse.elm-lang.org/t/generated-code-invalid-for-a-repo-with-a-dot-in-its-name/1007 "2018-03-25T12:36:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zoul](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.elm-lang.org/zoul/32/2697_2.png) [@zoul](https://discourse.elm-lang.org/u/zoul)\
**Post date:** [March 25, 2018, 12:36pm UTC](https://discourse.elm-lang.org/t/generated-code-invalid-for-a-repo-with-a-dot-in-its-name/1007/1 "2018-03-25T12:36:00Z")

</div>

I have an Elm app in a repo named after a domain (`foo.cz`). The repo name somehow ends up as a part of the generated Javascript symbol names:

```
var _zoul$foo.cz$Victim$decodeLatLong = function (str) { … }

```

This annoys my browser (Safari):

```
SyntaxError: Unexpected token '.'. Expected ';' after variable declaration.

```

(According to this Javascript [variable name validator](https://mothereff.in/js-variables) a dot is invalid in a Javascript variable name indeed.) When I remove the dot from the `repository` field in my `elm-package.json`, the issue disappears. Is this an error on my side, or is it worth a bug report?

Edit: I see, [this was already reported](https://github.com/elm-lang/elm-compiler/issues/1597), [twice even](https://github.com/elm-lang/elm-compiler/issues/1406). It looks like the solution, at least for my case, is simply dropping the repo link from the package description once 0.19 ships (and using a dummy repo link in the meantime).
