Skip to content

Commit

Permalink
Merge pull request #33 from mstruebing/bugfix/regexTwitterHandle
Browse files Browse the repository at this point in the history
BUGFIX: Improve regular expression validation for Twitter card creator
  • Loading branch information
kdambekalns authored Feb 27, 2017
2 parents f97526e + 5245f89 commit 3fe87f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Configuration/NodeTypes.Mixins.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
placeholder: '@johnexample'
validation:
'Neos.Neos/Validation/RegularExpressionValidator':
regularExpression: '/@[a-z0-9_]{1,15}/i'
regularExpression: '/^@[a-z0-9_]{1,15}$/i'
twitterCardTitle:
type: string
ui:
Expand Down Expand Up @@ -293,4 +293,4 @@
validation:
'Neos.Neos/Validation/NumberRangeValidator':
minimum: 0
maximum: 1
maximum: 1

0 comments on commit 3fe87f2

Please sign in to comment.