Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(153)

Issue 13396049: Reuse RegExp objects in CSS lexer. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by kpreid2
Modified:
12 years, 6 months ago
Reviewers:
felix8a
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Patch provided by Yonatan Offek in <https://code.google.com/p/google-caja/issues/detail?id=1856>. I have checked that the reuse of RegExp objects with the 'g' flag is safe, because replace always resets lastIndex to 0 (according to the ES5.1 spec). @r5594

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -6 lines) Patch
M src/com/google/caja/plugin/csslexer.js View 2 chunks +4 lines, -6 lines 0 comments Download

Messages

Total messages: 2
kpreid2
12 years, 6 months ago (2013-09-09 18:22:58 UTC) #1
felix8a
12 years, 6 months ago (2013-09-09 22:50:55 UTC) #2
lgtm
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b