@comicrelief/storybook 2.5.3 → 2.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/storybook",
3
3
  "description": "React components to build the Comic Relief front-end experience",
4
- "version": "2.5.3",
4
+ "version": "2.5.4",
5
5
  "dependencies": {
6
6
  "@snyk/protect": "^1.1060.0",
7
7
  "@storybook/addon-info": "3",
@@ -422,7 +422,8 @@ class PostcodeLookup extends Component {
422
422
  extraClass: 'search-box',
423
423
  autoComplete: isChrome ? 'new-postcode' : 'off',
424
424
  };
425
- const addressPattern = /^[A-Za-z0-9]+[ _.'/&\w-]*$/;
425
+ const addressPattern = /^[A-Za-z0-9]+[ _.'\/&\w\-]*$/;
426
+
426
427
  const addressErrorMessage = 'This field only accepts alphanumeric characters and \' . - & _ /';
427
428
  const addressOutputFields = [
428
429
  { id: 'address1', type: 'text', label: 'Address line 1', required: true, pattern: addressPattern, invalidErrorText: addressErrorMessage, autoComplete: isChrome ? 'new-address-1' : 'off' },