patterns.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns
  2. # YouTube
  3. https?://(?:(?:www\.|)youtube\.com|youtu.be)/(?:channel/|embed/|playlist\?list=|watch\?v=|v/|)[-a-zA-Z0-9?&=_]*
  4. <\s*youtube\s+id=['"][-a-zA-Z0-9?_]*['"]
  5. \bimg\.youtube\.com/vi/[-a-zA-Z0-9?&=_]*
  6. # Google Analytics
  7. \bgoogle-analytics\.com/collect.[-0-9a-zA-Z?%=&_.~]*
  8. # Google APIs
  9. \bgoogleapis\.com/[a-z]+/v\d+/[a-z]+/[@./?=\w]+
  10. \b[-a-zA-Z0-9.]*\bstorage\d*\.googleapis\.com(?:/\S*|)
  11. # Google Calendar
  12. \bcalendar\.google\.com/calendar(?:/u/\d+|)/embed\?src=[@./?=\w&%]+
  13. \w+\@group\.calendar\.google\.com\b
  14. # Google DataStudio
  15. \bdatastudio\.google\.com/(?:(?:c/|)u/\d+/|)(?:embed/|)(?:open|reporting|datasources|s)/[-0-9a-zA-Z]+(?:/page/[-0-9a-zA-Z]+|)
  16. # The leading `/` here is as opposed to the `\b` above
  17. # ... a short way to match `https://` or `http://` since most urls have one of those prefixes
  18. # Google Docs
  19. /docs\.google\.com/[a-z]+/d/(?:e/|)[0-9a-zA-Z_-]+/?
  20. # Google Drive
  21. \bdrive\.google\.com/file/d/[0-9a-zA-Z_?=]*
  22. # Google Groups
  23. \bgroups\.google\.com/(?:forum/#!|d/)(?:msg|topic)/[^/]+/[a-zA-Z0-9]+(?:/[a-zA-Z0-9]+|)
  24. # Google themes
  25. themes\.googleusercontent\.com/static/fonts/[^/]+/v\d+/[^.]+.
  26. # Google CDN
  27. \bclients2\.google(?:usercontent|)\.com[-0-9a-zA-Z/.]*
  28. # Goo.gl
  29. /goo\.gl/[a-zA-Z0-9]+
  30. # Google Chrome Store
  31. \bchrome\.google\.com/webstore/detail/\w*(?:/\w*|)
  32. # Google Books
  33. \bbooks\.google\.(?:\w{2,4})/books\?[-\w\d=&#.]*
  34. # Google Fonts
  35. \bfonts\.(?:googleapis|gstatic)\.com/[-/?=:;+&0-9a-zA-Z]*
  36. # GitHub SHAs
  37. \bapi.github\.com/repos/[^/]+/[^/]+/[^/]+/[0-9a-f]+\b
  38. (?:\[[0-9a-f]+\]\(https:/|)/(?:www\.|)github\.com/[^/]+/[^/]+(?:/[^/]+/[0-9a-f]+(?:[-0-9a-zA-Z/#.]*|)\b|)
  39. \bgithub\.com/[^/]+/[^/]+[@#][0-9a-f]+\b
  40. # githubusercontent
  41. /[-a-z0-9]+\.githubusercontent\.com/[-a-zA-Z0-9?&=_\/.]*
  42. # gist github
  43. /gist\.github\.com/[^/]+/[0-9a-f]+
  44. # git.io
  45. \bgit\.io/[0-9a-zA-Z]+
  46. # GitHub JSON
  47. "node_id": "[-a-zA-Z=;:/0-9+]*"
  48. # Contributor
  49. \[[^\]]+]\(https://github\.com/[^/]+\)
  50. # GHSA
  51. GHSA(?:-[0-9a-z]{4}){3}
  52. LS_COLORS=(["']).*?\g{-1}
  53. (\\?)%[a-zA-Z]+\g{-1}(?!%)
  54. # URL escaped characters
  55. \%[0-9A-F]{2}
  56. # hex digits including css/html color classes:
  57. (?:[\\0][xX]|\\u|[uU]\+|#x?|\%23)[0-9a-fA-FgGrR_]{2,}(?:[uU]?[lL]{0,2}|u\d+)\b
  58. # https://www.gnu.org/software/groff/manual/groff.html
  59. # man troff content
  60. \\f[BCIPR]
  61. # Compiler flags
  62. [\t "'`=]-[LPWXY]
  63. [\t "'`=]-D(?!ebian)
  64. # ignore long runs of a single character:
  65. \b([A-Za-z])\g{-1}{3,}\b