-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IOS DIR: Account for spaces in permissions (#321)
* New data was found that had spaces in permissions data. * Update template to allow for this space using `(.+?)`. * Remove state change as it does not seem to be doing much. * Simplify `date_time` to use `(.+?)` and add end of line, `\s*$$` to capture whatever text shows up between `SIZE` and `NAME`. * Remove unnecesarry capture groups that were not assigned to named capture groups.
- Loading branch information
1 parent
3fdfe53
commit a5ffa63
Showing
3 changed files
with
6 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,15 @@ | ||
Value Filldown FILE_SYSTEM (\S+) | ||
Value ID (\d+) | ||
Value PERMISSIONS (\S+) | ||
Value PERMISSIONS (.+?) | ||
Value SIZE (\d+) | ||
Value Fillup TOTAL_SIZE (\d+) | ||
Value Fillup TOTAL_FREE (\d+) | ||
Value DATE_TIME ((<no date>)|(\w+\s\d+\s\d+\s\S+\s\S+)) | ||
Value DATE_TIME (.+?) | ||
Value NAME (\S+) | ||
|
||
Start | ||
^Directory of\s+${FILE_SYSTEM} -> DIR | ||
|
||
DIR | ||
^Directory of\s+${FILE_SYSTEM} -> DIR | ||
^((\s+)*${ID})\s+${PERMISSIONS}\s+${SIZE}\s+${DATE_TIME}\s+${NAME} -> Record | ||
^\s*${ID}\s+${PERMISSIONS}\s+${SIZE}\s+${DATE_TIME}\s+${NAME}\s*$$ -> Record | ||
^Directory of\s+${FILE_SYSTEM} | ||
^${TOTAL_SIZE}\s+\S+\s+\S+\s\(${TOTAL_FREE} bytes free\) | ||
|
||
# | ||
EOF |
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