2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-30 05:27:44 +00:00

77 Commits

Author SHA1 Message Date
Edho Arief
496649c2e3 The regexp doesn't have unicode class? Whatever. 2012-11-18 19:11:01 +07:00
Edho Arief
e00f89fdff Removes insignificant space. 2012-11-18 19:07:02 +07:00
Edho Arief
18cac8b49f strip!, not strip. It was previously a noop. 2012-11-18 18:57:42 +07:00
Edho Arief
db4cf8bac1 No need to close tag. Nokogiri will do that automagically. 2012-11-18 18:49:32 +07:00
Edho Arief
b8267e1c51 it's \r and \r\n we need to replace, not \r\n and \n. 2012-11-18 18:35:03 +07:00
Edho Arief
68d0e1d927 Nuked /index from most (if not all) places.
--HG--
branch : 3.2.0-release
2012-09-21 01:39:06 -07:00
Edho Arief
b259e78cec Nuked translation framework since google's translation service is paid service
Machine translation sucks anyway.
2012-07-06 09:45:19 -07:00
Edho Arief
4f24a727f9 No newlines after opening blockquote. 2012-07-01 10:11:17 -07:00
Edho Arief
515192b36a >>>>> for dtext parseurl. 2012-06-07 05:23:46 -07:00
Edho Arief
37df8f76ec No more <> spacing evilry in dtext. 2012-06-07 05:18:27 -07:00
Edho Arief
ff1282cf97 better parseurl (probably). 2012-06-07 04:53:51 -07:00
Edho Arief
b662456644 Cleaned up comments. 2012-06-07 04:02:51 -07:00
Edho Arief
3e790c7a2c Fixed link generation on list item. 2012-06-07 03:53:58 -07:00
Edho Arief
337ca01cb9 Some more whitespace cleanup. 2012-06-04 17:24:00 +07:00
edogawaconan
83e658cca1 Merged in fudanchii/moebooru (pull request #8) 2012-06-02 01:58:33 +07:00
Edho Arief
046698d9e4 Accidentally dtext's parseurl return value. 2012-06-01 14:19:39 -04:00
Nurahmadie
93a1a93238 Use lazy regex. Fix consecutive [b] or [i] tags substitution. 2012-06-02 01:17:42 +07:00
Edho Arief
02c1d8fdf8 Rubinius compat. 2012-06-01 14:17:28 -04:00
Edho Arief
60a5914973 Nuke the newlines after blockquote. 2012-05-28 20:00:53 -07:00
Edho Arief
ece3d1c4f1 Fixed link to wiki generation. 2012-05-25 10:18:21 -07:00
Edho Arief
b5a74a2841 Whitespace cleanup after lists and headers. 2012-05-25 09:40:20 -07:00
Edho Arief
1627183a98 Stop eating newlines. (also ensure the split results something before counting stars) 2012-05-25 08:59:23 -07:00
Edho Arief
5110ae3bf2 Re-dtext import. 2012-05-25 11:13:32 -04:00
Edho Arief
4ffff21010 Not sure if the crazy regex still needed. Breaks on rbx so I guess I'll just limit it to ruby mri 1.8. 2012-05-22 14:32:57 -04:00
Nurahmadie
f996731784 Add comments 2012-05-22 06:58:09 +07:00
Nurahmadie
3ba9f1cca7 Simplify url substitution logic for <<url|label>> form. 2012-05-22 06:28:11 +07:00
Nurahmadie
407bf21ff9 Fix url match. 2012-05-21 03:26:32 +07:00
Nurahmadie
77f4cda49d Don't do repetitive match 2012-05-19 01:24:41 +07:00
Nurahmadie
dba23cbc06 No need to use block for <li></li> 2012-05-19 01:12:50 +07:00
Nurahmadie
7364f1b8a4 Move last <br> substitution to parseinline. 2012-05-19 00:56:04 +07:00
Nurahmadie
44082c5399 Remove <br> if appear just before </div> 2012-05-19 00:45:02 +07:00
Nurahmadie
b2242dbd7a Add some comments for parseinline 2012-05-19 00:44:11 +07:00
Nurahmadie
1acfbff7ee Keep newline after </div>. For consistant layout 2012-05-19 00:18:53 +07:00
Nurahmadie
8797abac06 Use like... 4 versions of spoiler tag 2012-05-18 23:56:05 +07:00
Nurahmadie
b8efab6e15 Capture the original case from shortlinks 2012-05-18 23:06:41 +07:00
Nurahmadie
3c485e02c2 edogawaconan's patch. Less gsub call 2012-05-18 22:38:31 +07:00
Nurahmadie
482a5981f7 Ignore case for shortlinks 2012-05-18 22:12:12 +07:00
Nurahmadie
9aa1bc0891 Remove unnecessary temporary vars from regex usage 2012-05-18 21:51:53 +07:00
Nurahmadie
3245ccd4de Move CGI.escapeHTML 2012-05-18 21:28:38 +07:00
Nurahmadie
44728c9222 Validate ipv6, and lolttp style scheme. 2012-05-18 05:17:00 +07:00
Nurahmadie
f08448674d Don't catch whitespace for url pattern, update test 2012-05-16 06:01:21 +07:00
Nurahmadie
f6aa6bed03 Do escape link 2012-05-16 05:38:28 +07:00
Nurahmadie
4a7b66848c Fix wrong parameter, update test to check this. 2012-05-16 04:45:21 +07:00
Nurahmadie
691568c874 add head and tail whitespace for <<link|name>> pattern 2012-05-16 04:38:50 +07:00
Nurahmadie
d0fca5fed8 Match start and end of line. 2012-05-16 04:34:30 +07:00
Nurahmadie
97b9f463b2 Remove <li> for nested <ul> 2012-05-16 01:55:30 +07:00
Nurahmadie
6ef3b81b97 Make it work with rails 2012-05-16 01:26:30 +07:00
Nurahmadie
8cd98deb7c Hopefully backward-compatible with the original dtext. 2012-05-16 01:01:23 +07:00
Nurahmadie
3780980b4c Now we have parse url 2012-05-16 00:32:02 +07:00
Edho Arief
8d4775025c Tab => space replacement. 2012-05-13 18:18:11 -07:00