on xenial help sign in
Fixing the regex.
commit5a23870a2672a55310ed2e28d7ddf0121d46a0f6 authorMichał Sawicz <michal.sawicz@canonical.com> dateMon 24 Jun 2013, 17:30 (13 years ago) parent6018ede
1 file changed+1−1
Components/IconUtil.js+1−1
Components/IconUtil.js+1−1
@@ -33,7 +33,7 @@ function from_gicon(name) {
3333 return "image://gicon/" + themed[1];
3434 }
3535 }
36− var name_re = /^[a-z-]+$/;
36+ var name_re = /^[a-z1-9_-\.]+$/;
3737 if (name_re.test(icon_name)) {
3838 return "image://gicon/" + icon_name;
3939 } else {