Edgewall Software

Changeset 14569


Ignore:
Timestamp:
Feb 26, 2016, 12:09:52 AM (9 years ago)
Author:
Christian Boos
Message:

1.2dev: a few of the newer Pygments styles have '-' in their name.

e.g. paraiso-dark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/trac/mimeview/pygments.py

    r14509 r14569  
    163163
    164164    def match_request(self, req):
    165         match = re.match(r'/pygments/(\w+)\.css', req.path_info)
     165        match = re.match(r'/pygments/([-\w]+)\.css', req.path_info)
    166166        if match:
    167167            req.args['style'] = match.group(1)
Note: See TracChangeset for help on using the changeset viewer.