-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing multiple pattern databases as an array to the new `patt…
…erns_paths` argument - Support `patterns_path` argument but deprecate `patterns_path` attribute accessor - Add new `patterns_paths` array argument and accessor to enable loading multiple patterns files Fixes #11
- Loading branch information
Showing
6 changed files
with
76 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
user_agent_parsers: | ||
- regex: '.*' | ||
- regex: 'Any.*' | ||
family_replacement: 'Custom browser' | ||
v1_replacement: '1' | ||
v2_replacement: '2' | ||
v3_replacement: '3' | ||
v4_replacement: '4' | ||
|
||
os_parsers: | ||
- regex: '.*' | ||
- regex: 'Any.*' | ||
os_replacement: 'Custom OS' | ||
os_v1_replacement: '1' | ||
os_v2_replacement: '2' | ||
|
||
device_parsers: | ||
- regex: '.*' | ||
- regex: 'Any.*' | ||
device_replacement: 'Custom device' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
user_agent_parsers: | ||
- regex: 'Other.*' | ||
family_replacement: 'Other browser' | ||
v1_replacement: '1' | ||
v2_replacement: '2' | ||
v3_replacement: '3' | ||
v4_replacement: '4' | ||
|
||
os_parsers: | ||
- regex: 'Other.*' | ||
os_replacement: 'Other OS' | ||
os_v1_replacement: '1' | ||
os_v2_replacement: '2' | ||
|
||
device_parsers: | ||
- regex: 'Other.*' | ||
device_replacement: 'Other device' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters