commit | bc3997b37babf6be84386bcaf780d81af5f4dcfb | [log] [tgz] |
---|---|---|
author | dpapad <dpapad@chromium.org> | Wed Feb 28 23:24:59 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Feb 28 23:24:59 2024 |
tree | 483d25e1d7e50983b6bd543b9b09cc0c12fbe846 | |
parent | d6cf08f971862d95cd69e367a1b27235879adaf6 [diff] |
WebUI: Fix regular expression to extract CSS in lit_migration.py. The script would fail to properly extrart the <style> tag content out of a Polymer HTML template when the ">" operator appeared in the CSS. Fixing the corresponding regular expression to handle such case. After this fix, the following command correctly extracts CSS contents, whereas previously it failed. python3 ui/webui/resources/tools/codemods/lit_migration.py \ --file ui/webui/resources/cr_elements/cr_slider/cr_slider.ts Bug: 40943652 Change-Id: Ie9c60d2ec8d54d6bf57a469aa858fb03c95df7a0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5331187 Reviewed-by: Rebekah Potter <rbpotter@chromium.org> Commit-Queue: Demetrios Papadopoulos <dpapad@chromium.org> Cr-Commit-Position: refs/heads/main@{#1266714}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.