diff --git a/internal/parser/testfiles/test3.pdf b/internal/parser/testfiles/test3.pdf new file mode 100644 index 0000000..caf1bf8 Binary files /dev/null and b/internal/parser/testfiles/test3.pdf differ diff --git a/main.go b/main.go index 7efed2d..7c1e89d 100644 --- a/main.go +++ b/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 {