Skip to content

Commit

Permalink
Have not encounter numbering using commas. Remove commas from title d…
Browse files Browse the repository at this point in the history
…etection to reduce false positives.
  • Loading branch information
MrOrz committed Jul 15, 2015
1 parent 3102f07 commit f828180
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lineMachine.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import {parseZHNumber} from 'zhutil';
import Section from './section';

const TITLE_NUMBER_HIERARCHY = [
/^([〇零壹貳參叄肆伍陸柒捌玖拾佰仟]+)\s?[、,\.,]/, // level 0
/^([〇零一兩二三四五六七八九十百千]+)\s?[、,\.,]/, // level 1
/^([〇零壹貳參叄肆伍陸柒捌玖拾佰仟]+)\s?[、\.]/, // level 0
/^([〇零一兩二三四五六七八九十百千]+)\s?[、\.]/, // level 1
/^[((]\s?([〇零一兩二三四五六七八九十百千]+)\s?[))]/, // level 2
/^(\d+|[0-9]+)\s?[、,\.,]/, // level 3
/^(\d+|[0-9]+)\s?[、\.]/, // level 3
/^[((]\s?(\d+|[0-9]+)\s?[))]/, // level 4
/^([甲乙丙丁戊己庚辛壬癸a-za-zA-ZA-Z])\s?[、,\.,]/,// level 5
/^([甲乙丙丁戊己庚辛壬癸a-za-zA-ZA-Z])\s?[、\.]/,// level 5
],
HIERARCHY_NAMES = [
'%s、', '%s、', '(%s)', '%s、', '(%s)', '%s、'
Expand Down

0 comments on commit f828180

Please sign in to comment.