Updated naughty string list, generator, test
diff --git a/test/blns.dart b/test/blns.dart
index 8285124..89afc70 100644
--- a/test/blns.dart
+++ b/test/blns.dart
@@ -2,7 +2,7 @@
//
// This file was generated from big-list-of-naughty-strings's JSON file:
// https://github.com/minimaxir/big-list-of-naughty-strings/raw/master/blns.json
-// at 2018-07-02 12:53:34.521084 by the script, tool/update_blns.dart.
+// at 2019-03-26 11:59:01.647188 by the script, tool/update_blns.dart.
const blns = <String>[
'',
@@ -99,7 +99,7 @@
'!@#\$%^&*()`~',
'',
'',
- '
',
+ '
',
'',
'',
'',
@@ -138,9 +138,10 @@
'社會科學院語學研究所',
'울란바토르',
'𠜎𠜱𠝹𠱓𠱸𠲖𠳏',
+ '表ポあA鷗ŒéB逍Üߪąñ丂㐀𠀀',
'Ⱥ',
'Ⱦ',
- 'ヽ༼ຈل͜ຈ༽ノ ヽ༼ຈل͜ຈ༽ノ ',
+ 'ヽ༼ຈل͜ຈ༽ノ ヽ༼ຈل͜ຈ༽ノ',
'(。◕ ∀ ◕。)',
'`ィ(´∀`∩',
'__ロ(,_,*)',
@@ -169,15 +170,7 @@
'הָיְתָהtestالصفحات التّحول',
'﷽',
'ﷺ',
- 'مُنَاقَشَةُ سُبُلِ اِسْتِخْدَامِ اللُّغَةِ فِي النُّظُمِ الْقَائِمَةِ وَفِيم يَخُصَّ التَّطْبِيقَاتُ الْحاسُوبِيَّةُ، ',
- '',
- ' ',
- '',
- ' ',
- '',
- '␣',
- '␢',
- '␡',
+ 'مُنَاقَشَةُ سُبُلِ اِسْتِخْدَامِ اللُّغَةِ فِي النُّظُمِ الْقَائِمَةِ وَفِيم يَخُصَّ التَّطْبِيقَاتُ الْحاسُوبِيَّةُ، ',
'test',
'test',
'
test
',
@@ -460,9 +453,11 @@
'\$HOME',
'\$ENV{\'HOME\'}',
'%d',
- '%s',
+ '%s%s%s%s%s',
'{0}',
'%*.*s',
+ '%@',
+ '%n',
'File:///',
'../../../../../../../../../../../etc/passwd%00',
'../../../../../../../../../../../etc/hosts',
@@ -512,4 +507,6 @@
'But now...[20Cfor my greatest trick...[8m',
'The quick brown fox... [Beeeep]',
'Powerلُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ冗',
+ '🏳0🌈️',
+ 'జ్ఞా',
];
diff --git a/test/blns_test.dart b/test/blns_test.dart
index 383e112..5ef04de 100644
--- a/test/blns_test.dart
+++ b/test/blns_test.dart
@@ -16,7 +16,7 @@
// This is more a test of update_blns.dart: we're testing that the strings
// were encoded half-decently, and nothing got globbed up into a big
// multiline string.
- expect(blns, hasLength(507));
+ expect(blns, hasLength(504));
});
var index = 0;
diff --git a/tool/update_blns.dart b/tool/update_blns.dart
index 37d10ee..0f42462 100644
--- a/tool/update_blns.dart
+++ b/tool/update_blns.dart
@@ -25,7 +25,7 @@
// at ${DateTime.now()} by the script, tool/update_blns.dart.
''');
- blnsContent.writeln('const blns = const <String>[');
+ blnsContent.writeln('const blns = <String>[');
for (var str in json) {
var escaped = str
.replaceAll(r'\', r'\\')