Skip to content

Commit

Permalink
Merge pull request #300 from comicrelief/update_postcode_pattern
Browse files Browse the repository at this point in the history
fix: updated postcode pattern
  • Loading branch information
Heleen-cr authored Mar 1, 2019
2 parents e0e6532 + ee5b5f7 commit 5c99c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PostcodeLookup/PostcodeLookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ class PostcodeLookup extends Component {
type: 'text',
placeholder: 'SE1 7TP',
buttonText: 'FIND ADDRESS',
pattern: /^[A-Za-z0-9/\-.\s]+$/,
pattern: /^[A-Za-z0-9 \\,./&-]{1,15}$/,
invalidErrorText: 'Please enter a valid postcode',
emptyFieldErrorText: 'Please enter your postcode',
extraClass: 'search-box',
Expand Down

0 comments on commit 5c99c06

Please sign in to comment.