Add НДС filter string
This commit is contained in:
parent
172bcc7846
commit
3afd65ee35
2 changed files with 2 additions and 2 deletions
BIN
internal/parser/testfiles/test3.pdf
Normal file
BIN
internal/parser/testfiles/test3.pdf
Normal file
Binary file not shown.
4
main.go
4
main.go
|
@ -15,10 +15,10 @@ type CheckEntry struct {
|
|||
|
||||
func main() {
|
||||
// TODO: Redo format of file passing to function
|
||||
text := parser.ParseX5Check("./internal/parser/testfiles/test.pdf")
|
||||
text := parser.ParseX5Check("./internal/parser/testfiles/test3.pdf")
|
||||
|
||||
split := strings.Split(text, "\n")
|
||||
stringsToFilter := "https://mail|Gmail - Электронный чек|Сумма"
|
||||
stringsToFilter := "https://mail|Gmail - Электронный чек|Сумма|НДС"
|
||||
re := regexp.MustCompile(stringsToFilter)
|
||||
filtered := []string{}
|
||||
for _, element := range split {
|
||||
|
|
Loading…
Reference in a new issue