v.21.1New Features
Add Custom TLD List Functionality
Add ability to use custom TLD list: added functionsfirstSignificantSubdomainCustom,cutToFirstSignificantSubdomainCustom. #17748 (Azat Khuzhin).
Why it matters
These functions enable users to specify their own TLD lists, providing more flexible and accurate domain parsing compared to the default TLD list. This helps in extracting significant subdomains correctly in various scenarios where custom or non-standard TLDs are used.How to use it
Use the new functionsfirstSignificantSubdomainCustom(domain, tld_list) and cutToFirstSignificantSubdomainCustom(domain, tld_list) by passing the domain name and a custom TLD list as parameters to tailor the domain parsing to your needs.