mirror of
https://github.com/Respect/Validation.git
synced 2024-06-09 01:02:16 +02:00
Improve auto-updaters and pull requesters, auto-tld fix
This commit is contained in:
parent
8b3c607d03
commit
f080f7da08
14
.github/dependabot.yml
vendored
Normal file
14
.github/dependabot.yml
vendored
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
|
||||||
|
# Maintain dependencies for GitHub Actions
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
|
||||||
|
# Maintain dependencies for Composer
|
||||||
|
- package-ecosystem: "composer"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
2
.github/workflows/update-currency-codes.yaml
vendored
2
.github/workflows/update-currency-codes.yaml
vendored
|
@ -3,7 +3,7 @@ name: Update currency codes
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 0'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-currency-codes:
|
update-currency-codes:
|
||||||
|
|
2
.github/workflows/update-language-codes.yaml
vendored
2
.github/workflows/update-language-codes.yaml
vendored
|
@ -3,7 +3,7 @@ name: Update language codes
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 0'
|
- cron: '0 0 * * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update-language-codes:
|
update-language-codes:
|
||||||
|
|
|
@ -20,7 +20,7 @@ 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,# ,,")"
|
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,7 @@ 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 2023021200, Last Updated Sun Feb 12 07:07:01 2023 UTC
|
* 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