aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-08-27 02:22:31 +0200
committer zaaarf <zaaarf@proton.me>2023-08-27 02:22:31 +0200
commit8f122b540e1b6795554647c7708a2f21164240fe (patch)
treee2d0b143b7d00045d2f72cb7610c73845a4e3e2c /src/main/java/ftbsc
parent787fea3dd108a4329a9afe3b1e8dfa6722607b9d (diff)
feat: better claiming method for tsrg
Diffstat (limited to 'src/main/java/ftbsc')
-rw-r--r--src/main/java/ftbsc/lll/mapper/impl/TSRGMapper.java4
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