Skip to content

Commit

Permalink
changed placeholder text on source /lookup page
Browse files Browse the repository at this point in the history
  • Loading branch information
heartsucker committed Feb 4, 2017
1 parent b636e62 commit e099b72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion securedrop/source_templates/lookup.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h1 class="headline">Submit Materials</h1>
<p class="center" id="max-file-size">Maximum upload size: 500 MB</p>
</div>
<div class="message grid-item">
<textarea name="msg" class="fill-parent" placeholder="Add message"></textarea>
<textarea name="msg" class="fill-parent" placeholder="Add a message."></textarea>
</div>
</div>

Expand Down
2 changes: 1 addition & 1 deletion securedrop/tests/test_unit_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _find_codename(self, html):
"""Find a source codename (diceware passphrase) in HTML"""
# Codenames may contain HTML escape characters, and the wordlist
# contains various symbols.
codename_re = r'<p id="codename">(?P<codename>[a-z0-9 &#;?:=@_.*+()\'"$%!-]+)</p>'
codename_re = r'<p[^>]*id="codename"[^>]*>(?P<codename>[a-z0-9 &#;?:=@_.*+()\'"$%!-]+)</p>'
codename_match = re.search(codename_re, html)
self.assertIsNotNone(codename_match)
return codename_match.group('codename')
Expand Down

0 comments on commit e099b72

Please sign in to comment.