public static String reduceSurtToAssignmentLevel ( String surt ) { Matcher matcher = TextUtils . getMatcher ( getTopmostAssignedSurtPrefixRegex ( ) , surt ) ; if ( matcher . find ( ) ) { surt = matcher . group ( ) ; } TextUtils . recycleMatcher ( matcher ) ; return surt ; }
Truncate SURT to its topmost assigned domain segment ; that is the public suffix plus one segment but as a SURT - ordered prefix .