schemes.go 498 B

1234567891011121314151617
  1. // Copyright (c) 2015, Daniel Martí <mvdan@mvdan.cc>
  2. // See LICENSE for licensing information
  3. package xurls
  4. // SchemesNoAuthority is a sorted list of some well-known url schemes that are
  5. // followed by ":" instead of "://". Since these are more prone to false
  6. // positives, we limit their matching.
  7. var SchemesNoAuthority = []string{
  8. `bitcoin`, // Bitcoin
  9. `file`, // Files
  10. `magnet`, // Torrent magnets
  11. `mailto`, // Mail
  12. `sms`, // SMS
  13. `tel`, // Telephone
  14. `xmpp`, // XMPP
  15. }