mirror of
https://github.com/Respect/Validation.git
synced 2024-06-08 08:42:15 +02:00
Remove version info from Tld.php
We currently use a GitHub action to automate updating this file. That action has the ability to ignore making the PR if the file didn't changed. Having the version number, which changed a line, was causing several useless PR. Users can still check if Tld.php changed by seeing the git log, and a manual note should be issued by the maintainer on the CHANGELOG.md file when a release containing such changes is made.
This commit is contained in:
parent
689026fc7b
commit
ef4778b456
|
@ -20,7 +20,6 @@ echo "- Creating temporary file"
|
||||||
sed --silent --regexp-extended "/^</,/^\{/p" "${RULE_FILENAME}"
|
sed --silent --regexp-extended "/^</,/^\{/p" "${RULE_FILENAME}"
|
||||||
echo " /**"
|
echo " /**"
|
||||||
echo " * List extracted from ${LIST_URL}"
|
echo " * List extracted from ${LIST_URL}"
|
||||||
echo " * $(grep "^#" "${LIST_FILENAME}" | sed "s,# ,," | cut -d"," -f1)"
|
|
||||||
echo " */"
|
echo " */"
|
||||||
echo " private const TLD_LIST = ["
|
echo " private const TLD_LIST = ["
|
||||||
grep --invert-match "^#" "${LIST_FILENAME}" |
|
grep --invert-match "^#" "${LIST_FILENAME}" |
|
||||||
|
|
|
@ -29,7 +29,6 @@ final class Tld extends AbstractRule
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* List extracted from https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
* List extracted from https://data.iana.org/TLD/tlds-alpha-by-domain.txt
|
||||||
* Version 2023021400
|
|
||||||
*/
|
*/
|
||||||
private const TLD_LIST = [
|
private const TLD_LIST = [
|
||||||
'AAA', 'AARP', 'ABARTH', 'ABB', 'ABBOTT', 'ABBVIE', 'ABC', 'ABLE',
|
'AAA', 'AARP', 'ABARTH', 'ABB', 'ABBOTT', 'ABBVIE', 'ABC', 'ABLE',
|
||||||
|
|
Loading…
Reference in a new issue