[webkit-changes] [WebKit/WebKit] 4e9929: Use String.prototype.trim() instead of Regex to tr...
Ahmad Saleem
noreply at github.com
Thu Dec 19 10:49:18 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4e9929ca2c25fb5ad9fd779cd88ab9481ae0b3c0
https://github.com/WebKit/WebKit/commit/4e9929ca2c25fb5ad9fd779cd88ab9481ae0b3c0
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2024-12-19 (Thu, 19 Dec 2024)
Changed paths:
M Source/WebCore/xml/XMLViewer.js
Log Message:
-----------
Use String.prototype.trim() instead of Regex to trim whitespaces in `XMLViewer.js`
https://bugs.webkit.org/show_bug.cgi?id=284930
rdar://problem/141726975
Reviewed by Yusuke Suzuki and Tim Nguyen.
Merge: https://source.chromium.org/chromium/chromium/src/+/98f0c1af8d23027bc8f2dc0681255f649d73e374
This patch leverages standard API `String.prototype.trim()` to trim whitespaces
instead of leveraging RegEx.
* Source/WebCore/xml/XMLViewer.js:
(isShort):
(trim): Deleted.
(createText):
Canonical link: https://commits.webkit.org/288104@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list