Skip to content

Commit b0c466f

Browse files
pangdaxing23kaiwk
authored andcommitted
fix problems with single quote in name
1 parent d6c3564 commit b0c466f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

leetcode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ VALUE should be the referer."
452452
"Make TITLE a slug title.
453453
Such as 'Two Sum' will be converted to 'two-sum'. 'Pow(x, n)' will be 'powx-n'"
454454
(let* ((str1 (replace-regexp-in-string "[\s-]+" "-" (downcase title)))
455-
(res (replace-regexp-in-string "[(),]" "" str1)))
455+
(res (replace-regexp-in-string "[(),']" "" str1)))
456456
res))
457457

458458
(defun leetcode--replace-in-buffer (regex to)

0 commit comments

Comments
 (0)