diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83728081..0e1b4e49 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: ci -on: [push, pull_request] - +on: [push, pull_request, workflow_dispatch] + jobs: should-skip: continue-on-error: true diff --git a/src/segment/segmentTemplate.js b/src/segment/segmentTemplate.js index 673887de..245935ae 100644 --- a/src/segment/segmentTemplate.js +++ b/src/segment/segmentTemplate.js @@ -3,7 +3,7 @@ import urlTypeToSegment from './urlType'; import { parseByTimeline } from './timelineTimeParser'; import { parseByDuration } from './durationTimeParser'; -const identifierPattern = /\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g; +const identifierPattern = /\$([A-Za-z_]*)(?:(%0)([0-9]+)d)?\$/g; /** * Replaces template identifiers with corresponding values. To be used as the callback