Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb4e6153

Browse files
committed
Revert "[bugfix] Fix redos in preprocessRFC2822 regex (#6015)"
This reverts commit7aebb16.
1 parent7aebb16 commitb4e6153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/lib/create/from-string.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function untruncateYear(yearStr) {
151151
functionpreprocessRFC2822(s){
152152
// Remove comments and folding whitespace and replace multiple-spaces with a single space
153153
returns
154-
.replace(/\([^()]*\)|[\n\t]/g,' ')
154+
.replace(/\([^)]*\)|[\n\t]/g,' ')
155155
.replace(/(\s\s+)/g,' ')
156156
.replace(/^\s\s*/,'')
157157
.replace(/\s\s*$/,'');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp