diff --git a/python/jsbeautifier/core/templatablepattern.py b/python/jsbeautifier/core/templatablepattern.py index a2f81139d..08018a6e9 100644 --- a/python/jsbeautifier/core/templatablepattern.py +++ b/python/jsbeautifier/core/templatablepattern.py @@ -115,7 +115,7 @@ def read(self): next = self._read_template() if self._until_after: - result += self._input.readUntilAfter(self._until_after) + result += self._input.readUntilAfter(self._until_pattern) return result