Skip to content

Commit 3a4bc14

Browse files
Merge pull request #42 from 1fabiopereira/feat/add-new-pattern
Feat/add new pattern
2 parents d8308c1 + 34da276 commit 3a4bc14

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ android {
3535
minSdkVersion getExtOrIntegerDefault('minSdkVersion')
3636
targetSdkVersion getExtOrIntegerDefault('targetSdkVersion')
3737
versionCode 1
38-
versionName "0.2.5"
38+
versionName "0.2.6"
3939
}
4040

4141
buildTypes {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-pdf-extractor",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "This library allows you to extract pdfs file data using matches specifics patterns.",
55
"main": "lib/commonjs/index.js",
66
"module": "lib/module/index.js",

src/patterns/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ const Brazil = {
77
/(\d{5})\.(\d{5})\s(\d{5})\.(\d{6})\s(\d{5})\.(\d{6})\s(\d)\s(\d{14})/, // Banking - Typeable line
88
/(\d{12})\s(\d{12})\s(\d{12})\s(\d{12})/, // Tax revenues - Bar code
99
/(\d{11})-(\d)\s(\d{11})-(\d)\s(\d{11})-(\d)\s(\d{11})-(\d)/, // Tax revenues - Typeable line
10+
/(\d{11})\s(\d{1})\s(\d{11})\s(\d{1})\s(\d{11})\s(\d{1})\s(\d{11})\s(\d{1})/, // Darf
1011
],
1112
};
1213

0 commit comments

Comments
 (0)