diff --git a/src/tags-input.js b/src/tags-input.js index 7be6afd5..15437a3c 100644 --- a/src/tags-input.js +++ b/src/tags-input.js @@ -118,7 +118,7 @@ tagsInput.directive('tagsInput', function($timeout, $document, tagsInputConfig) addOnSpace: [Boolean, false], addOnComma: [Boolean, true], addOnBlur: [Boolean, true], - allowedTagsPattern: [RegExp, /^[a-zA-Z0-9\s]+$/], + allowedTagsPattern: [RegExp, /.+/], enableEditingLastTag: [Boolean, false], minTags: [Number], maxTags: [Number], diff --git a/test/tags-input.spec.js b/test/tags-input.spec.js index 6f157ccb..bac055ff 100644 --- a/test/tags-input.spec.js +++ b/test/tags-input.spec.js @@ -544,12 +544,12 @@ describe('tags-input directive', function() { expect($scope.tags).toEqual([]); }); - it('initializes the option to ^[a-zA-Z0-9\\s]+$', function() { + it('initializes the option to .+', function() { // Arrange/Act compile(); // Assert - expect(isolateScope.options.allowedTagsPattern.toString()).toBe('/^[a-zA-Z0-9\\s]+$/'); + expect(isolateScope.options.allowedTagsPattern.toString()).toBe('/.+/'); }); }); diff --git a/test/test-page.html b/test/test-page.html index f54c09e9..0f4f2e25 100644 --- a/test/test-page.html +++ b/test/test-page.html @@ -35,7 +35,6 @@