Changeset 206888 in webkit
- Timestamp:
- Oct 6, 2016 4:11:01 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r206729 r206888 1 2016-10-06 Devin Rousso <dcrousso+webkit@gmail.com> 2 3 Inspector exception in `parseTextForRule()` when pasting into CSS rule selector 4 https://bugs.webkit.org/show_bug.cgi?id=162792 5 6 Reviewed by Matt Baker. 7 8 * UserInterface/Views/CSSStyleDeclarationSection.js: 9 (WebInspector.CSSStyleDeclarationSection.prototype._handleSelectorPaste.parseTextForRule): 10 Changed regular expression for matching CSS rules to allow newlines in pasted text. 11 1 12 2016-10-02 Devin Rousso <dcrousso+webkit@gmail.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationSection.js
r205754 r206888 424 424 let containsBraces = /[\{\}]/; 425 425 if (!containsBraces.test(text)) 426 return null;427 428 let match = text.match(/([^{]+){( .*)}/);426 return []; 427 428 let match = text.match(/([^{]+){([\s\S]*)}/); 429 429 if (!match) 430 return null;430 return []; 431 431 432 432 // If the match "body" contains braces, parse that body as if it were a rule.
Note: See TracChangeset
for help on using the changeset viewer.