mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Trim Markdown Go! out of Link string
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
fs = require('fs')
|
||||
|
||||
function md_trim(str) {
|
||||
return str.replace(/(^\s+)|(\s+$)/g, "");
|
||||
str = str.replace(/(^\s+)|(\s+$)/g, "");
|
||||
if (str.lastIndexOf("[Go!]", 0) === 0) {
|
||||
str = str.replace("[Go!]", "").slice(1, -1);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
function handle(filename, anchor) {
|
||||
|
||||
Reference in New Issue
Block a user