v.21.1New Features

Add Custom TLD List Functionality

Add ability to use custom TLD list: added functions firstSignificantSubdomainCustom, cutToFirstSignificantSubdomainCustom. #17748 (Azat Khuzhin).
Added new functions firstSignificantSubdomainCustom and cutToFirstSignificantSubdomainCustom to allow usage of a custom Top-Level Domain (TLD) list when processing domain names.

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 functions firstSignificantSubdomainCustom(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.