fix(lexer_en): syntax

This commit is contained in:
EmileRolley 2021-03-10 18:42:42 +01:00
parent 918fcc2c06
commit 1664afcafe

View File

@ -528,7 +528,7 @@ let lex_law_en (lexbuf : lexbuf) : token =
Star white_space,
']',
'\n' ) ->
let extract_article_title = R.regexp "([#]+)\\s*\\[([^@]+)\\]" in
let extract_article_title = R.regexp "([#]+)\\s*\\[([^\\]]+)\\]" in
let get_substring =
R.get_substring (R.exec ~rex:extract_article_title (Utf8.lexeme lexbuf))
in