erisu commented on pull request #226:
URL: https://github.com/apache/cordova-paramedic/pull/226#issuecomment-943099628


   ### Previous Regular Expression w/ `instruments`
   
   **Use Case 1: iPhone:**
   
   Previous RegEx: `/^([a-zA-Z\d ]+) \(([\d.]+)\) \[([a-zA-Z\d-]*)\].*$/`
   Sample Data: `iPhone 12 (14.5) [0AFC41A6-E65C-484A-89C8-EC756B330821] 
(Simulator)`
   
   Example Match:
   
   <img width="699" alt="use-case-1" 
src="https://user-images.githubusercontent.com/1029107/137271409-2982f196-295f-4cd2-b697-a9fb980a8c17.png";>
   
   **Use Case 2: iPhone + Apple Watch:**
   
   We do not handle this use case since the previous regular expression does 
not match with the sample data:
   `iPhone 12 (14.5) + Apple Watch Series 5 - 44mm (7.4) 
[DC773D49-C704-4BA2-A3C1-A6FCAA68B047] (Simulator)`
   
   This is to remain excluded from this PR.
   
   <hr />
   
   ### New Regular Expression w/ `xcrun xctrace list `
   
   **Use Case 1: iPhone:**
   
   New RegEx: `/^([a-zA-Z\d ]+) Simulator \(([\d.]+)\) \(([a-zA-Z\d-]*)\).*$/`
   Sample Data: `iPhone 12 Pro Simulator (15.0) 
(14B3DA19-0752-4484-B393-AC95EF2D46F8)`
   
   In the above example RegEx, it might be better to add `Simulator` to the 
expression.
   
   Example Match:
   
   <img width="706" alt="use-case-1-new" 
src="https://user-images.githubusercontent.com/1029107/137272239-a87bfd97-669e-44a0-99dd-c8bc278db061.png";>
 
   
   **Use Case 2: iPhone + Apple Watch:**
   
   This is to remain excluded from this PR.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to