Closed (fixed)
Project:
Drupal core
Version:
8.7.x-dev
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Sep 2019 at 11:23 UTC
Updated:
2 Oct 2019 at 08:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chr.fritschHere is a patch to fix it.
Comment #3
alexpottThis looks untestable on DrupalCI but the change makes sense.
Comment #4
mtodor commentedThis looks good to me. Regex is simple and easy to understand, so I would keep it as it is.
I have also tested with
HTTPSandHTTPand it works in both cases.Good job in finding this and fixing it!
Should we also fix this in 8.8.x?
Comment #5
justafishThe change also makes sense to me, but I think that regex will match for SSESS anywhere. How about
^S?SESSinstead.Comment #6
alexpottGreat catch @justafish - https://regex101.com/r/gZPVSH/4 vs https://regex101.com/r/gZPVSH/3
Comment #7
alexpottAnd now with @justafish's suggested regex - https://regex101.com/r/gZPVSH/5 - works great.
Comment #8
chr.fritschNice. Here is the updated patch.
Comment #9
mtodor commentedGood catch @justafish, I didn't notice missing parentheses. :(
I have tested this again and it works.
Comment #10
alexpottCommitted and pushed ffce54ecc7 to 8.8.x and b4b3f327ec to 8.7.x. Thanks!