VentureCraft / revisionable

Easily create a revision history for any laravel model
http://twitter.com/duellsy
MIT License
2.55k stars 348 forks source link

Allow escaping | (pipe) and . (dot) for options string #407

Closed kiddtang closed 3 months ago

kiddtang commented 2 years ago

If the options string contains the explode delimiters, it will generate unexpected output. If the user needs pipe | or . in the options, this PR allows them to escape it. Enhancement for #363

Example String:

options:1.SA0000 - Kidd \|Tang|2.OKCRQ0 - Mr\. Carmine Fisher

Expected Output:

[
  1 => "SA0000 - Kidd |Tang"
  2 => "OKCRQ0 - Mr. Carmine Fisher"
]