diff options
| author | Glenn Morris | 2014-06-26 20:33:00 -0400 |
|---|---|---|
| committer | Glenn Morris | 2014-06-26 20:33:00 -0400 |
| commit | 50ccef4f27a9749ec07fe137ded8ec68bba6ca4e (patch) | |
| tree | a51e173a634385facae4e93179c13777ca15b8bd /lisp | |
| parent | fe9f42eb6e207c2a19df7f681beb2d9fa59553ca (diff) | |
| download | emacs-50ccef4f27a9749ec07fe137ded8ec68bba6ca4e.tar.gz emacs-50ccef4f27a9749ec07fe137ded8ec68bba6ca4e.zip | |
* etc/publicsuffix.txt: Update from source.
* lisp/url/url-domsuf.el: Update example comments.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/url/url-domsuf.el | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lisp/url/url-domsuf.el b/lisp/url/url-domsuf.el index 6cedd3c3ca7..365cf561ae2 100644 --- a/lisp/url/url-domsuf.el +++ b/lisp/url/url-domsuf.el | |||
| @@ -72,11 +72,11 @@ | |||
| 72 | ((and (null modifier) | 72 | ((and (null modifier) |
| 73 | (string= domain entry)) | 73 | (string= domain entry)) |
| 74 | (setq allowedp nil)) | 74 | (setq allowedp nil)) |
| 75 | ;; "!pref.hokkaido.jp" | 75 | ;; "!city.yokohama.jp" |
| 76 | ((and (eq modifier t) | 76 | ((and (eq modifier t) |
| 77 | (string= domain entry)) | 77 | (string= domain entry)) |
| 78 | (setq allowedp t)) | 78 | (setq allowedp t)) |
| 79 | ;; "*.ar" | 79 | ;; "*.bd" |
| 80 | ((and (numberp modifier) | 80 | ((and (numberp modifier) |
| 81 | (= length modifier) | 81 | (= length modifier) |
| 82 | (string= entry upper-domain)) | 82 | (string= entry upper-domain)) |
| @@ -85,13 +85,14 @@ | |||
| 85 | 85 | ||
| 86 | ;; Tests: | 86 | ;; Tests: |
| 87 | 87 | ||
| 88 | ;; TODO convert to a proper test/automated test. | ||
| 88 | ;; (url-domsuf-cookie-allowed-p "com") => nil | 89 | ;; (url-domsuf-cookie-allowed-p "com") => nil |
| 89 | ;; (url-domsuf-cookie-allowed-p "foo.bar.ar") => t | 90 | ;; (url-domsuf-cookie-allowed-p "foo.bar.bd") => t |
| 90 | ;; (url-domsuf-cookie-allowed-p "bar.ar") => nil | 91 | ;; (url-domsuf-cookie-allowed-p "bar.bd") => nil |
| 91 | ;; (url-domsuf-cookie-allowed-p "co.uk") => nil | 92 | ;; (url-domsuf-cookie-allowed-p "co.uk") => nil |
| 92 | ;; (url-domsuf-cookie-allowed-p "foo.bar.hokkaido.jo") => t | 93 | ;; (url-domsuf-cookie-allowed-p "foo.bar.hokkaido.jo") => t |
| 93 | ;; (url-domsuf-cookie-allowed-p "bar.hokkaido.jp") => nil | 94 | ;; (url-domsuf-cookie-allowed-p "bar.yokohama.jp") => nil |
| 94 | ;; (url-domsuf-cookie-allowed-p "pref.hokkaido.jp") => t | 95 | ;; (url-domsuf-cookie-allowed-p "city.yokohama.jp") => t |
| 95 | 96 | ||
| 96 | (provide 'url-domsuf) | 97 | (provide 'url-domsuf) |
| 97 | 98 | ||