diff options
Diffstat (limited to 'src/main/java/ftbsc/lll')
-rw-r--r-- | src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java b/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java index 9cd96d1..838a84d 100644 --- a/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java +++ b/src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java @@ -7,6 +7,7 @@ import ftbsc.lll.mapper.IMapper; import ftbsc.lll.mapper.tools.data.ClassData; import java.util.List; +import java.util.regex.Pattern; /** * A {@link IMapper} capable of parsing TSRG (an intermediary @@ -18,7 +19,8 @@ public class TSRGMapper extends AbstractMapper { @Override public boolean claim(List<String> lines) { - return lines.get(0).startsWith("tsrg2 left right"); + return Pattern.compile("tsrg2 [a-zA-Z]* [a-zA-Z]*") + .matcher(lines.get(0)).matches(); } @Override |