Skip to content

Commit a22cce7

Browse files
author
Bozhidar Batsov
committed
Replace ! in grimoire urls
1 parent 802df2f commit a22cce7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

cider-interaction.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,6 +1413,9 @@ under point, prompts for a var."
14131413
(setq name (if (string-match "\\?\\'" name)
14141414
(replace-match "_QMARK" t t name)
14151415
name))
1416+
(setq name (if (string-match "\\!\\'" name)
1417+
(replace-match "_BANG" t t name)
1418+
name))
14161419
(setq name (if (string-match "\\`-" name)
14171420
(replace-match "DASH_" t t name)
14181421
name))

test/cider-tests.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@
547547
(ert-deftest cider-grimoire-replace-special ()
548548
(should (equal (cider-grimoire-replace-special "isa?") "isa_QMARK"))
549549
(should (equal (cider-grimoire-replace-special "really-isa?") "really_DASH_isa_QMARK"))
550+
(should (equal (cider-grimoire-replace-special "reset!") "reset_BANG"))
550551
(should (equal (cider-grimoire-replace-special "defn-") "defn_DASH"))
551552
(should (equal (cider-grimoire-replace-special "-map-indexed") "DASH_map_DASH_indexed"))
552553
(should (equal (cider-grimoire-replace-special "-foo-bar-baz-") "DASH_foo_DASH_bar_DASH_baz_DASH")))

0 commit comments

Comments
 (0)