Changeset 245836 in webkit
- Timestamp:
- May 28, 2019, 6:05:45 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
GCHeapInspector/script/interface.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r245828 r245836 1 2019-05-28 Yusuke Suzuki <ysuzuki@apple.com> 2 3 GCHeapInspector should accept weird filename 4 https://bugs.webkit.org/show_bug.cgi?id=198314 5 6 Reviewed by Simon Fraser. 7 8 GCHeapInspector filenameForPath should have a fallback path if regexp does not match against the given path. 9 10 * GCHeapInspector/script/interface.js: 11 (filenameForPath): 12 1 13 2019-05-28 Eric Carlson <eric.carlson@apple.com> 2 14 -
trunk/Tools/GCHeapInspector/script/interface.js
r241274 r245836 447 447 function filenameForPath(filepath) 448 448 { 449 return filepath.match(/([^\/]+)(?=\.\w+$)/)[0]; 449 var matched = filepath.match(/([^\/]+)(?=\.\w+$)/); 450 if (matched) 451 return matched[0]; 452 return filepath; 450 453 } 451 454
Note:
See TracChangeset
for help on using the changeset viewer.