@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
|
@@ -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]+[ _.'
|
|
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' },
|