Bug #83385

SyntaxError: invalid regular expression flag s - in page tree

Added by Tymoteusz Motylewski almost 2 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Category:
Pagetree
Target version:
Start date:
2017-12-19
Due date:
% Done:

100%

TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Seems that JS regex flag /s is not supported in all browsers.

SyntaxError: invalid regular expression flag s

Instead we could use

[/s/S]*

to match newlines also.

Associated revisions

Revision 3e46941c (diff)
Added by Tymoteusz Motylewski almost 2 years ago

[BUGFIX] Replace /s JS regex flag(modifier) with [/s/S]

to match all characters including new line.

Resolves: #83385
Releases: master
Change-Id: I5c36550ddf3503f16006800d417c819d47af7fc4
Reviewed-on: https://review.typo3.org/55157
Tested-by: TYPO3com <>
Reviewed-by: Nils Seinschedt <>
Reviewed-by: Benjamin Kluge <>
Tested-by: Benjamin Kluge <>
Reviewed-by: Andreas Fernandez <>
Tested-by: Andreas Fernandez <>
Reviewed-by: Nicole Cordes <>
Tested-by: Nicole Cordes <>

History

#1 Updated by Gerrit Code Review almost 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/55157

#2 Updated by Tymoteusz Motylewski almost 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#3 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF