Branch name containing a dot

Whan I try to configure a submodule for a branch in parent repo which contains a dot character (.) in its name I get following error in js console:

bundle.js:2 SyntaxError: Invalid regular expression: /^refs\/heads\/release-1\(.)0$/: Unmatched ')'
    at new RegExp (<anonymous>)
    at uN (bundle.js:2:818436)
    at Bw (bundle.js:2:690122)
    at ii (bundle.js:2:245121)
    at qi (bundle.js:2:254639)
    at $l (bundle.js:2:298144)
    at Ns (bundle.js:2:284444)
    at Os (bundle.js:2:284372)
    at Ss (bundle.js:2:284235)
    at hs (bundle.js:2:281222)