nanaya
|
be7bb55b97
|
Add rails version of rubocop
|
2024-01-08 19:39:01 +09:00 |
|
nanaya
|
69c8917d69
|
Update new defaults
|
2020-12-11 01:30:54 +09:00 |
|
nanaya
|
d649868eec
|
Update comments to use delegate
|
2020-04-22 05:15:23 +09:00 |
|
edogawaconan
|
af39d0718b
|
Don't explode on nil.
|
2014-12-05 23:54:08 +09:00 |
|
edogawaconan
|
8f9a647fd8
|
Immediate return instead of assignment.
|
2014-11-20 17:50:43 +09:00 |
|
edogawaconan
|
b0938706be
|
Replace and and or with && and || .
|
2014-11-20 17:50:31 +09:00 |
|
edogawaconan
|
da373734c9
|
Avoid the use of Perl-style backrefs.
Rubocop(tm).
|
2014-11-20 17:50:31 +09:00 |
|
edogawaconan
|
8b5b2a86bb
|
Remove extra () when calling method.
Ruby isn't javascript.
|
2014-11-20 17:50:31 +09:00 |
|
edogawaconan
|
a2fe0b2ccc
|
Remove redundant return.
Courtesy rubocop.
|
2014-11-20 17:50:30 +09:00 |
|
edogawaconan
|
28d0acf76d
|
Remove usage of not which couldn't be auto-corrected.
|
2014-11-20 17:50:30 +09:00 |
|
edogawaconan
|
d61e30ff7e
|
Double quotes everywhere.
Using rubocop's auto-correct.
|
2014-11-20 17:50:29 +09:00 |
|
edogawaconan
|
b8e336c849
|
Refactor DText.parseurl.
|
2014-11-20 17:50:20 +09:00 |
|
Nurahmadie
|
26a8f5c375
|
Fix #272, thanks to Zolxys.
Should check for /^\*+\s+/ pattern before splitting the line,
avoid inserting <ul> by mistake and make sure </ul> inserted exactly once for each
<ul>
|
2013-06-02 22:57:16 +07:00 |
|
Edho Arief
|
dde9dbefec
|
Declare utf-8 encoding on dtext library.
|
2012-12-27 22:37:49 +07:00 |
|
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 |
|