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:
parent
6f5501c6e5
commit
cc5a341372
@ -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()
|
||||
}
|
@ -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()
|
||||
}
|
@ -13,7 +13,6 @@ class ResponseParser {
|
||||
KauflandMobilParser(),
|
||||
TMobileUsParser(),
|
||||
PostCurrencyParser(),
|
||||
PreCurrencyWhitespaceParser(),
|
||||
PreCurrencyParser(),
|
||||
GenericParser()
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user