-
Notifications
You must be signed in to change notification settings - Fork 1
/
PreparseMessages.php
37 lines (30 loc) · 1.05 KB
/
PreparseMessages.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
// These are the messages that go in to the preparser for testing
return array(
// Taken from Preparse.subs.php
'[font=something]text[/font]',
'[font=something, someother]text[/font]',
'[font=something, \'someother\']text[/font]',
'[font=\'something\', someother]text[/font]',
'something[quote][/quote]',
'something[code]without a closing tag',
'some open list[list][li]one[/list]',
'some list[code][list][li]one[/list][/code]',
// Apparently Apache has/had an issue with too many periods. I guess Apache doesn't have a wife/gf
str_repeat('.', 1000),
// Me me me
'/me , it\'s all about',
// Empty tags
'[list][/list]',
'[i][/i]',
// Itemcodes and lists
"[*]list item\n[*]another list item\n[*]yet another list item",
// Autolinks
'http://www.google.com',
'www.google.com',
'ftp://some.ftp.com',
'https://secure.google.com',
// https://github.com/SimpleMachines/SMF2.1/issues/3106
'[list][li]Test[/li][li]More[code]Some COde[/code][/li][/list]',
);