Merge pull request #2680 from wallabag/taggingrule-255

Limit rule to 255
This commit is contained in:
Nicolas Lœuillet
2016-12-06 21:00:24 +01:00
committed by GitHub
2 changed files with 24 additions and 0 deletions

View File

@ -28,6 +28,7 @@ class TaggingRule
* @var string
*
* @Assert\NotBlank()
* @Assert\Length(max=255)
* @RulerZAssert\ValidRule(
* allowed_variables={"title", "url", "isArchived", "isStared", "content", "language", "mimetype", "readingTime", "domainName"},
* allowed_operators={">", "<", ">=", "<=", "=", "is", "!=", "and", "not", "or", "matches"}