mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 21:33:07 +02:00
tests: Allow unicode character ä in the task description
This commit is contained in:
parent
24e43fecd1
commit
ec00c961b4
1 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,5 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
@ -152,7 +154,9 @@ class IntegrationTest(object):
|
|||
# Helper function that fills in {uuid} placeholders with correct UUIDs
|
||||
def fill_uuid(self, line):
|
||||
# Tasks in testing can have only alphanumerical descriptions
|
||||
match = re.match(r'\s*\* \[.\] (?P<desc>[a-zA-Z0-9 ]*)(?<!\s)', line)
|
||||
match = re.match(ur'\s*\* \[.\] (?P<desc>[äa-zA-Z0-9 ]*)(?<!\s)', line,
|
||||
flags=re.UNICODE)
|
||||
|
||||
if not match:
|
||||
return line
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue