Skip to content
Browse files

Fix bug in regex for extracting location ids

fixes #12793
  • Loading branch information...
KevinCaseiras committed Jul 11, 2019
1 parent 486d3b0 commit f7242f6dde02117fbba5ffd49e47d71f38990f06
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/gov/nysenate/openleg/processor/law/
@@ -19,7 +19,7 @@
private static final Logger logger = LoggerFactory.getLogger(AbstractLawBuilder.class);

/** Pattern used for parsing the location ids to extract the document type and doc type id. */
protected static Pattern locationPattern = Pattern.compile("^(ST|SP|SA|A|T|P|S|INDEX)(.*)");
protected static Pattern locationPattern = Pattern.compile("^(ST|SP|SA|A|T|P|S|INDEX)(.+)");

/** Pattern for certain chapter nodes that don't have the usual -CH pattern. */
protected static Pattern specialChapterPattern = Pattern.compile("^(AS|ASSEMBLYRULES|SENATERULES)$");

0 comments on commit f7242f6

Please sign in to comment.
You can’t perform that action at this time.