sastrabahu / jaikuengine

Automatically exported from code.google.com/p/jaikuengine
Apache License 2.0
1 stars 0 forks source link

dash "-" in subdomain name #57

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
[Note: this is for reporting issues on the JaikuEngine open source project.
if you are reporting an issue with the jaiku.com service, please send it to
support@jaiku.com]

i wanted to deploy on an appspot account so i've named my app using an dash
ash-dev3
this stoped me from uploading images for my avatar message was "Could not
validate avatar path"

What steps will reproduce the problem?
1. chose an dash name application name for appspot
2. deploy it

to solve it i've changed the validation regexp from common\patterns.py
from
AVATAR_PARTIAL_PATH_RE = r'(default|(?P<nick>#?\w+@[\w\.]+))/(?P<path>.*)'
to 
AVATAR_PARTIAL_PATH_RE =
r'(default|(?P<nick>#?\w+@[\w<b>\-</b>\.]+))/(?P<path>.*)'

Original issue reported on code.google.com by asharlohmar on 19 Mar 2009 at 12:33

GoogleCodeExporter commented 8 years ago
sorry, the new regexp was
AVATAR_PARTIAL_PATH_RE = r'(default|(?P<nick>#?\w+@[\w\-\.]+))/(?P<path>.*)'

i've put the  hopeing that \- will show in bold

Original comment by asharlohmar on 19 Mar 2009 at 12:34

GoogleCodeExporter commented 8 years ago

Original comment by andyster on 22 Apr 2009 at 11:02