Skip to content

Commit c841877

Browse files
authored
Merge pull request yuin#330 from tongson/fix_gsub
Start at 0x3a so we skip numbers.
2 parents 2c84be4 + 91be88d commit c841877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pm/pm.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (pn *singleClass) Matches(ch int) bool {
210210
case 'l', 'L':
211211
ret = 'a' <= ch && ch <= 'z'
212212
case 'p', 'P':
213-
ret = (0x21 <= ch && ch <= 0x2f) || (0x30 <= ch && ch <= 0x40) || (0x5b <= ch && ch <= 0x60) || (0x7b <= ch && ch <= 0x7e)
213+
ret = (0x21 <= ch && ch <= 0x2f) || (0x3a <= ch && ch <= 0x40) || (0x5b <= ch && ch <= 0x60) || (0x7b <= ch && ch <= 0x7e)
214214
case 's', 'S':
215215
switch ch {
216216
case ' ', '\f', '\n', '\r', '\t', '\v':

0 commit comments

Comments
 (0)