0
0
mirror of https://github.com/mueller-ma/PrepaidBalance.git synced 2024-09-20 00:12:15 +02:00

Remove PreCurrencyWhitespaceParser

This commit is contained in:
mueller-ma 2023-02-02 16:10:46 +01:00
parent 6f5501c6e5
commit cc5a341372
3 changed files with 2 additions and 13 deletions

View File

@ -4,7 +4,7 @@ import com.github.muellerma.prepaidbalance.parser.RegexParser
class PreCurrencyParser : RegexParser("Currency before balance") {
override val groupIndex: Int
get() = 3
get() = 4
override val regex: Regex
get() = "(.*?) (£|\$)((\\d)+\\.(\\d){1,2})(.*)".toRegex()
get() = "(.*?) (£|\$|CHF)( |)((\\d)+\\.(\\d){1,2})(.*)".toRegex()
}

View File

@ -1,10 +0,0 @@
package com.github.muellerma.prepaidbalance.parser.concrete
import com.github.muellerma.prepaidbalance.parser.RegexParser
class PreCurrencyWhitespaceParser : RegexParser("Currency before balance, separated by whitespace") {
override val groupIndex: Int
get() = 3
override val regex: Regex
get() = "(.*?) (CHF) ((\\d)+\\.(\\d){1,2})(.*)".toRegex()
}

View File

@ -13,7 +13,6 @@ class ResponseParser {
KauflandMobilParser(),
TMobileUsParser(),
PostCurrencyParser(),
PreCurrencyWhitespaceParser(),
PreCurrencyParser(),
GenericParser()
)