mirror of
https://github.com/zaaarf/lillero-mapper.git
synced 2024-11-22 21:04:49 +01:00
feat: better claiming method for tsrg
This commit is contained in:
parent
787fea3dd1
commit
8f122b540e
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,7 @@ import ftbsc.lll.mapper.IMapper;
|
||||||
import ftbsc.lll.mapper.tools.data.ClassData;
|
import ftbsc.lll.mapper.tools.data.ClassData;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A {@link IMapper} capable of parsing TSRG (an intermediary
|
* A {@link IMapper} capable of parsing TSRG (an intermediary
|
||||||
|
@ -18,7 +19,8 @@ public class TSRGMapper extends AbstractMapper {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean claim(List<String> lines) {
|
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
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue