diff options
author | Sean Allred <code@seanallred.com> | 2014-12-27 00:01:34 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-12-27 00:01:34 -0500 |
commit | 57976619d5bf17b6b822a4e0159dee4aab673b33 (patch) | |
tree | a1646d8383cb572af28f3e3101d1d3b7535c897c | |
parent | 0db8321f1dbb827666ef79bdae19b4864cb524ac (diff) |
Use string-start/-end instead of line-start/-end
-rw-r--r-- | sx.el | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -61,7 +61,8 @@ DATA can also be the link itself." (cdr (assoc 'link data))))) (when (stringp link) (replace-regexp-in-string - (rx line-start "http" (optional "s") "://" + (rx string-start + "http" (optional "s") "://" (or (sequence (group-n 1 (+ (not (any "/")))) @@ -69,7 +70,7 @@ DATA can also be the link itself." (group-n 2 (+ (not (any "/"))))) "." (+ (not (any "."))) "/" (* any) - line-end) + string-end) "\\1\\2" link)))) (defun sx--ensure-site (data) |