diff options
| author | Lars Ingebrigtsen | 2015-12-28 19:13:51 +0100 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2015-12-28 19:13:51 +0100 |
| commit | 0e99ccb32119882af50b37264cd4662db14b1e03 (patch) | |
| tree | 6af4173aea7d11dcebcc4b1ada8e9b153ee91fa5 | |
| parent | 91ef47353d423acbeeace443984f0ac097f1b2a0 (diff) | |
| download | emacs-0e99ccb32119882af50b37264cd4662db14b1e03.tar.gz emacs-0e99ccb32119882af50b37264cd4662db14b1e03.zip | |
Fix punycode short circuit logic
* puny.el (puny-encode-domain): Fix short-circuit logic.
| -rw-r--r-- | lisp/net/puny.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/net/puny.el b/lisp/net/puny.el index 389a6dc2700..a16e3a07706 100644 --- a/lisp/net/puny.el +++ b/lisp/net/puny.el | |||
| @@ -34,7 +34,7 @@ | |||
| 34 | For instance, \"fśf.org\" => \"xn--ff-2sa.org\"." | 34 | For instance, \"fśf.org\" => \"xn--ff-2sa.org\"." |
| 35 | ;; The vast majority of domain names are not IDNA domain names, so | 35 | ;; The vast majority of domain names are not IDNA domain names, so |
| 36 | ;; add a check first to avoid doing unnecessary work. | 36 | ;; add a check first to avoid doing unnecessary work. |
| 37 | (if (string-match "\\'[[:ascii:]]*\\'" domain) | 37 | (if (string-match "\\'[[:ascii:]]+\\'" domain) |
| 38 | domain | 38 | domain |
| 39 | (mapconcat 'puny-encode-string (split-string domain "[.]") "."))) | 39 | (mapconcat 'puny-encode-string (split-string domain "[.]") "."))) |
| 40 | 40 | ||