Skip to content

Commit

Permalink
Minor fix of regex encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jan 18, 2023
1 parent 8434be3 commit ae24926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openeo/rest/datacube.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def _guess_runtime(self, connection: "openeo.Connection") -> str:
language = self._guess_runtime_from_suffix(url_match.group("suffix"))
if not language:
# Guess language from UDF code
if re.search("^def [\w0-9_]+\(", self.code, flags=re.MULTILINE):
if re.search(r"^def [\w0-9_]+\(", self.code, flags=re.MULTILINE):
language = "Python"
# TODO: detection heuristics for R and other languages?
if not language:
Expand Down

0 comments on commit ae24926

Please sign in to comment.