We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ea8db commit 586c2fbCopy full SHA for 586c2fb
src/posts/text_manipulation.html
@@ -24,10 +24,14 @@
24
return word;
25
}
26
27
- if (!/[_\-:=/\\]|.\(.*\)/.test(word)) {
+ if (!/[_=/\\]|.\(.*\)/.test(word)) {
28
29
30
31
+ if (/.+[,.!?]/.test(word)) {
32
+ return `\`${word.slice(0, -1)}\`${word.slice(-1)}`;
33
+ }
34
+
35
return `\`${word}\``;
36
}).join(' ')).join("\n");
37
@@ -79,5 +83,17 @@
79
83
#copyBtn {
80
84
display: block;
81
85
margin-top: 1em;
86
+ background-color: #fdf;
87
+ border: none;
88
+ color: #000;
89
+ padding: .1em .5em;
90
+ border-radius: .5em;
91
92
+ #algo {
93
94
95
96
97
82
98
99
</style>
0 commit comments