Skip to content

Commit

Permalink
Fix potentially confusing regex example.
Browse files Browse the repository at this point in the history
The regex only matches files ending in .jpg, so the example should reflect this.
  • Loading branch information
pysailor committed Oct 24, 2022
1 parent 91ecee4 commit fb0ac82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/md/assets/about-product-link-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ The regexp above will split the source string into two parts, thanks to two name
- `(?<product_ref>.*)` is the first capture group. It is named `product_ref`. So, the result of this capture will be sent into the `product_ref` asset attribute. The `product_ref` attribute should exist in the asset family.

- `(?<attribute_ref>.*)` is the second capture group. It is named `attribute_ref`. So, the result of this capture will be sent to the `attribute_ref` asset attribute. The `attribute_ref` attribute should exist in the asset family.
Let's say our source string is equal to `Victor_packshot.png`. After the naming convention application, the `product_ref` asset attribute will contain the value "Victor" and the `attribute_ref` asset attribute will contain the value "packshot".
Let's say our source string is equal to `Victor_packshot.jpg`. After the naming convention application, the `product_ref` asset attribute will contain the value "Victor" and the `attribute_ref` asset attribute will contain the value "packshot".

#### Abortion on error

Expand Down

0 comments on commit fb0ac82

Please sign in to comment.