Skip to content

Commit

Permalink
Fix README tables
Browse files Browse the repository at this point in the history
  • Loading branch information
betato committed Sep 21, 2020
1 parent eef3cb1 commit cae82a0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ SOLIDWORKS will now create additional `.status` files when parts and assemblies

## Warnings

Warnings are shown to indicate incorrectly named files and folders or file errors. Warning and error icons are shown in the [file view](#file-view) and details can be read in the warnings and errors window.
Warnings are shown to indicate incorrectly named files and folders or file errors. Warning and error icons are shown in the [file view](#2---file-view) and details can be read in the warnings and errors window.

|Icon | Warning |
|---------------------------------------------------------------------------------------------------------------|-----------------------------------|
Expand Down Expand Up @@ -87,19 +87,19 @@ The following are **incorrectly** named:

To check if a part, assembly, or folder has a valid name, the following regexes are applied. A match must be found for the name to be valid.

|Applied to |Regex |
|---------------|-------------------------------------------------------|
|Part |`^([0-9]{2}-)+(0[1-9]|[1-9][0-9])(\s.*)?\.(?i)SLDPRT$` |
|Assembly |`^([0-9]{2}-)+00(\s.*)?\.(?i)SLDASM$` |
|Folder |`^([0-9]{2}-)+[0-9]{2}($|\s)` |
| Applied to | Regex |
|---------------|-------------------------------------------------------------|
| Part | `^([0-9]{2}-)+(0[1-9]|[1-9][0-9])(\s.*)?\.(?i)SLDPRT$` |
| Assembly | `^([0-9]{2}-)+00(\s.*)?\.(?i)SLDASM$` |
| Folder | `^([0-9]{2}-)+[0-9]{2}($|\s)` |

To check if a part, assembly, or child folder in a correctly named parent folder, the following regexes are applied. The first capturing group result of the parent folder and the Child Folder/Assembly/Part regex must be equal.

|Applied to |Regex |
|---------------|--------------------------------------------------------------------|
|Parent Folder |`^(([0-9]{2}-)+[0-9]{2}` |
|Child Folder |`^([0-9]{2}(-[0-9]{2})*)-[0-9]{2}($|\s)` |
|Assembly/Part |`^([0-9]{2}(-[0-9]{2})*)-[0-9]{2}(\s.*)?\.(?i)(SLDASM|SLDPRT)$` |
| Applied to | Regex |
|---------------|-------------------------------------------------------------------------|
| Parent Folder | `^(([0-9]{2}-)+[0-9]{2}` |
| Child Folder | `^([0-9]{2}(-[0-9]{2})*)-[0-9]{2}($|\s)` |
| Assembly/Part | `^([0-9]{2}(-[0-9]{2})*)-[0-9]{2}(\s.*)?\.(?i)(SLDASM|SLDPRT)$` |

## Other Information

Expand Down

0 comments on commit cae82a0

Please sign in to comment.