@jurislm/judicial-mcp 1.6.2 → 1.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/regulation-source.ts +5 -5
package/package.json
CHANGED
package/src/regulation-source.ts
CHANGED
|
@@ -363,14 +363,14 @@ function parseArticle(html: string, url: URL, lawName: string, articleNumber: st
|
|
|
363
363
|
if (!articleText) {
|
|
364
364
|
throw new RegulationSourceError('regulation_article_not_found', url.href)
|
|
365
365
|
}
|
|
366
|
+
const effectiveDate = dateForLabel(metadataText, ['施行日期', '生效日期'])
|
|
366
367
|
const version: RegulationVersion = {
|
|
367
368
|
amendment_date: dateForLabel(metadataText, ['修正日期', '修正日']),
|
|
368
369
|
promulgation_date: dateForLabel(metadataText, ['公布日期', '發布日期']),
|
|
369
|
-
effective_date:
|
|
370
|
-
effective_status:
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
version.effective_status = 'unknown'
|
|
370
|
+
effective_date: effectiveDate,
|
|
371
|
+
effective_status: /尚未生效|尚未施行/.test(metadataText)
|
|
372
|
+
? 'pending_or_mixed'
|
|
373
|
+
: effectiveDate === null ? 'unknown' : 'as_stated',
|
|
374
374
|
}
|
|
375
375
|
return { text: articleText, version }
|
|
376
376
|
}
|