import: Allow import # and () and /x and .number

This commit is contained in:
Calcitem 2021-06-12 23:05:33 +08:00
parent d0e620d858
commit f517c7a776
1 changed files with 11 additions and 0 deletions

View File

@ -75,12 +75,23 @@ class GameRecorder {
.replaceAll(';', ' ') .replaceAll(';', ' ')
.replaceAll('!', ' ') .replaceAll('!', ' ')
.replaceAll('?', ' ') .replaceAll('?', ' ')
.replaceAll('#', ' ')
.replaceAll('()', ' ')
.replaceAll('white', ' ') .replaceAll('white', ' ')
.replaceAll('black', ' ') .replaceAll('black', ' ')
.replaceAll('win', ' ') .replaceAll('win', ' ')
.replaceAll('lose', ' ') .replaceAll('lose', ' ')
.replaceAll('draw', ' ') .replaceAll('draw', ' ')
.replaceAll('resign', ' ') .replaceAll('resign', ' ')
.replaceAll('-/x', 'x')
.replaceAll('/x', 'x')
.replaceAll('.a', '. a')
.replaceAll('.b', '. b')
.replaceAll('.c', '. c')
.replaceAll('.d', '. d')
.replaceAll('.e', '. e')
.replaceAll('.f', '. f')
.replaceAll('.g', '. g')
.split(' '); .split(' ');
for (var i in list) { for (var i in list) {