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:
Alexandre Gomes Gaigalas 2023-02-17 00:54:01 -03:00
parent 689026fc7b
commit ef4778b456
2 changed files with 0 additions and 2 deletions

View file

@ -20,7 +20,6 @@ echo "- Creating temporary file"
sed --silent --regexp-extended "/^</,/^\{/p" "${RULE_FILENAME}"
echo " /**"
echo " * List extracted from ${LIST_URL}"
echo " * $(grep "^#" "${LIST_FILENAME}" | sed "s,# ,," | cut -d"," -f1)"
echo " */"
echo " private const TLD_LIST = ["
grep --invert-match "^#" "${LIST_FILENAME}" |

View file

@ -29,7 +29,6 @@ final class Tld extends AbstractRule
{
/**
* List extracted from https://data.iana.org/TLD/tlds-alpha-by-domain.txt
* Version 2023021400
*/
private const TLD_LIST = [
'AAA', 'AARP', 'ABARTH', 'ABB', 'ABBOTT', 'ABBVIE', 'ABC', 'ABLE',