From 66b9574b165be62e76c7397cf0eaa8d229d42675 Mon Sep 17 00:00:00 2001 From: bptato Date: Tue, 16 Apr 2024 15:08:44 +0200 Subject: Update code style * separate params with ; (semicolon) instead of , (colon) * reduce screaming snake case use * wrap long lines --- src/js/regex.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/js/regex.nim') diff --git a/src/js/regex.nim b/src/js/regex.nim index e189b430..f24633d1 100644 --- a/src/js/regex.nim +++ b/src/js/regex.nim @@ -49,7 +49,7 @@ proc compileRegex*(buf: string; flags: LREFlags = {}): Result[Regex, string] = ) return ok(regex) -func countBackslashes(buf: string, i: int): int = +func countBackslashes(buf: string; i: int): int = var j = 0 for i in countdown(i, 0): if buf[i] != '\\': -- cgit 1.4.1-2-gfad0