[expand] Adding exception for a few types of special punctuation (ampersand, plus, pound sign) which should be left in the original string and separated by whitespace. Closes #84. Closes #85
This commit is contained in:
@@ -69,6 +69,8 @@
|
||||
|
||||
#define is_punctuation(type) ((type) >= PERIOD && (type) < OTHER)
|
||||
|
||||
#define is_special_punctuation(type) ((type) == AMPERSAND || (type) == PLUS || (type) == POUND)
|
||||
|
||||
#define is_special_token(type) ((type) == EMAIL || (type) == URL || (type) == US_PHONE || (type) == INTL_PHONE)
|
||||
|
||||
#define is_whitespace(type) ((type) == WHITESPACE)
|
||||
|
||||
Reference in New Issue
Block a user