Merge "Issue #123" into master_14.2.1

Former-commit-id: 68d5188d77 [formerly 393dc5907a] [formerly f36c0dd1e4 [formerly 3cedd2e13e6bfa454cc9c6a64f610150d4c72104]]
Former-commit-id: f36c0dd1e4
Former-commit-id: c9b5f53137
This commit is contained in:
Juliya Dynina 2014-01-10 09:47:15 -05:00 committed by Gerrit Code Review
commit ee3356bbb1

View file

@ -34,6 +34,10 @@ import java.util.regex.Pattern;
* Oct 18, 2012 15332 jsanchez Replaced listOfAreaNamesPtrn with String pattern.
* Mar 13, 2013 DR 15892 D. Friedman Allow some punctuation in area names.
* Apr 18, 2013 DR 16055 D. Friedman Allow more than one contiguous space in areas.
* Jan 6, 2014 DR 16627 Qinglu Lin Updated listOfAreaName to get county name list locked when county abbreviation
* is dropped, a name has more than one word, two names are separated by slash (/),
* or a name has an apostrophe (') for Significant Weather Advisory, Special Weather
* Statement, and Short Term Forecast.
*
* </pre>
*
@ -57,7 +61,7 @@ public interface ICommonPatterns {
// LOCK_END can be added at the start of the line if a previous line has
// been locked.
public static final String listOfAreaName = "^((" + LOCK_END
+ "){0,1}((([\\?\\(\\)\\w\\.,/'-]+\\s{1,})+\\w{2}-)*(([\\?\\(\\)\\w\\.,/'-]+\\s{1,})+\\w{2}-)))";
+ "){0,1}((([\\?\\(\\)\\w\\.,/'-])+(\\s{1,}\\w{2}){0,1}(\\s{1,}\\w{1,}([\\/\\']\\w{0,}\\s{0,}\\w{0,}){0,}){0,}-)*))";
// LOCK_END should not be found at the beginning of a first bullet since the
// previous line should be blank.