2019-01-27 01:14:47 +01:00
|
|
|
# NotEmoji
|
|
|
|
|
|
|
|
- `v::notEmoji()`
|
|
|
|
|
|
|
|
Validates if the input does not contain an emoji.
|
|
|
|
|
|
|
|
```php
|
|
|
|
v::notEmoji()->validate('Hello World, without emoji'); // true
|
|
|
|
v::notEmoji()->validate('🍕'); // false
|
|
|
|
v::notEmoji()->validate('🎈'); // false
|
|
|
|
v::notEmoji()->validate('⚡'); // false
|
|
|
|
v::notEmoji()->validate('this is a spark ⚡'); // false
|
|
|
|
v::notEmoji()->validate('🌊🌊🌊🌊🌊🏄🌊🌊🌊🏖🌴'); // false
|
|
|
|
```
|
|
|
|
|
|
|
|
Please consider that the performance of this validator is linear which
|
|
|
|
means the longer the text the longer it takes to perform the check.
|
|
|
|
However, the validator will break the execution as soon as it finds the
|
|
|
|
first emoji or until it checks the whole text.
|
|
|
|
|
|
|
|
*Note: this validator will check the Emoji as they are defined in
|
|
|
|
Unicode V11 check the following link for more details
|
|
|
|
[Unicode v11](https://unicode.org/emoji/charts/full-emoji-list.html)*
|
|
|
|
|
2019-05-11 18:32:13 +02:00
|
|
|
## Categorization
|
|
|
|
|
|
|
|
- Strings
|
|
|
|
|
2019-01-27 01:14:47 +01:00
|
|
|
## Changelog
|
|
|
|
|
|
|
|
Version | Description
|
|
|
|
--------|-------------
|
|
|
|
2.0.0 | Created
|
|
|
|
|
|
|
|
***
|
|
|
|
See also:
|
|
|
|
|
|
|
|
- [Alnum](Alnum.md)
|
|
|
|
- [Alpha](Alpha.md)
|
2020-10-05 12:49:14 +02:00
|
|
|
- [Decimal](Decimal.md)
|
2019-01-27 01:14:47 +01:00
|
|
|
- [Digit](Digit.md)
|