Skip to content

SYNG1008 - Unterminated pattern

Domain: sexp
Severity: USER

A regex pattern was opened but never closed.

Regex patterns are delimited by forward slashes /. This error occurs when a pattern starts but the closing slash is missing.

Example

clojure
(str /foo)

The pattern /foo is missing its closing /.

Solution

Add the closing slash:

clojure
(str /foo/)

If your pattern contains a literal slash, escape it with \/.

SYNG1005, SYNG1007

Copyright © 2022-present Semantic Works, Inc.